Hi Csaba,

Csaba Halasz wrote:
getXuser fails to find user name if the X session is started using startx.

I'm aware of the problem, and this is definitely an promising approach. Consider it accepted, thanks for the contribution.

+       if [ x"$user" = x"" ]; then
+               startx=`pgrep startx`

Minor nit: if it's possible to have multiple "startx" instances running (is there anything that prevents this?), I think this should be either "pgrep -o startx" or "pgrep -n startx" (oldest or newest).

Cheers,
Bart


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to