[Debian-eeepc-devel] Changes for eeepc-acpi-scripts

jcsid jc.sid at free.fr
Thu Jun 12 10:27:52 UTC 2008


> >/ -	XAUTHORITY=$home/.Xauthority
/> >/ +	XAUTHORITY=/home/$user/.Xauthority
/>
> This is wrong. The home directory can be outside /home and be named 
> otherwise, not the same as the user.

I didn't see that, wasn't my change. Maybe the source I took were not the lasts?

Theses changes are not mine:
     if [ -S /tmp/.X11-unix/X0 ]; then
 	export DISPLAY=:0
-	user=$(who | sed -n '/ (:0[\.0]*)$\| :0 /{s/ .*//p;q}')
-        home=$(getent passwd $user | cut -d: -f6)
-	XAUTHORITY=$home/.Xauthority
+	user=$(who | sed -n '/ (:0[\.0].*)$\| :0 /{s/ .*//p;q}')
+	XAUTHORITY=/home/$user/.Xauthority
 	[ -f $XAUTHORITY ] && export XAUTHORITY

Others are

I forgot to remove:
+    *)
+	notify $code
+	;;

in hotkey.sh




More information about the Debian-eeepc-devel mailing list