X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=contrib%2Fpm-utils%2F40autorandr;fp=contrib%2Fpm-utils%2F40autorandr;h=0e029af23e9f079b41ebc04293bc2990aea5d63f;hb=756bf74c1301378f15cbe94b1a3ae2d5cf071a9d;hp=bc60971c85ac40010da38c7390a99350f29b67ae;hpb=ae2ea2b40c0f69be8e4f3a7a15a23eab6b5cae3d;p=deb_pkgs%2Fautorandr.git diff --git a/contrib/pm-utils/40autorandr b/contrib/pm-utils/40autorandr index bc60971..0e029af 100755 --- a/contrib/pm-utils/40autorandr +++ b/contrib/pm-utils/40autorandr @@ -12,7 +12,7 @@ find_user() { # Determine user owning the display session from $1 D="$1" - # Prefer loginctl over all others, see bug #49 + # Prefer loginctl over all others, see bug #39 if [ -x "`which loginctl`" ]; then # Based on http://unix.stackexchange.com/questions/203844/how-to-find-out-the-current-active-xserver-display-number/204498 # by SO user intelfx @@ -94,7 +94,7 @@ detect_display() for X in /tmp/.X11-unix/X*; do D="${X##/tmp/.X11-unix/X}" - user="$(find_user "$D")" + user="$(find_user ":$D")" if [ x"$user" != x"" ]; then logger "autorandr: Changing display configuration for display :$D, user '$user'"