From: Phillip Berndt Date: Fri, 29 Jul 2016 17:48:06 +0000 (+0200) Subject: Fixes in 40autorandr; thanks to @rnav for spotting the issues X-Git-Tag: 1.0~16 X-Git-Url: https://git.donarmstrong.com/deb_pkgs/autorandr.git?a=commitdiff_plain;h=756bf74c1301378f15cbe94b1a3ae2d5cf071a9d;p=deb_pkgs%2Fautorandr.git Fixes in 40autorandr; thanks to @rnav for spotting the issues --- 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'"