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

Miek Gieben miek at miek.nl
Thu Jun 12 11:08:10 UTC 2008


[ Quoting jcsid in "[Debian-eeepc-devel] Changes for ee"... ]
> > 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

Any reason why ~$user cannot be used?

Regards,
Miek Gieben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/debian-eeepc-devel/attachments/20080612/7ac84114/attachment.pgp 


More information about the Debian-eeepc-devel mailing list