On 24.06.2010 13:49, Xavier Hallade wrote:

> Maybe you have to execute "cp /home/you/.Xauthority  /root/" too.

You are right, if the script is executed as user root, it needs access
permission. However, I would prefer something like

export DISPLAYUSER=`ps --no-heading -o user -C startkde`
xauth add `sudo -u $DISPLAYUSER -s xauth list :0.0`

over copying the whole .Xauthority file. But kde experts might even know
better ways (e.g. like su does it in an X terminal...)

Regards,

Bernd


_______________________________________________
Mailing list: https://launchpad.net/~sony-vaio-z-series
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sony-vaio-z-series
More help   : https://help.launchpad.net/ListHelp

Reply via email to