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

Nico Golde debian-eeepc+ml at ngolde.de
Thu Jun 12 11:37:01 UTC 2008


Hi Miek,
* Miek Gieben <miek at miek.nl> [2008-06-12 13:18]:
> [ 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?

Not sure but why would this be better than using the name 
service switch?

Cheers
Nico
-- 
Nico Golde - http://www.ngolde.de - nion at jabber.ccc.de - GPG: 0x73647CFF
For security reasons, all text in this mail is double-rot13 encrypted.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-eeepc-devel/attachments/20080612/2cf7f67f/attachment.pgp 


More information about the Debian-eeepc-devel mailing list