On Sat, Jun 11, 2005 at 11:51:26PM +0200, Thomas Jahns wrote: > ------------------>8------------------------------------------------ > #! /usr/local/bin/bash > if [ -z "$1" ] > then > echo "Please specify user for display import." > fi > XAUTHORITY_FILE=~$1/.Xauthority > su $1 -c "xauth -i -f $XAUTHORITY_FILE extract - ${2:-$HOSTNAME${3:-/unix:0}}" | xauth merge - > ------------------>8------------------------------------------------ Warum nicht #! /bin/bash? Warum nicht export XAUTHORITY=~$1/.Xauthority; export DISPLAY=:0? Das Ganze funktioniert allerdings nicht wenn die Homedir per NFS, ohne no_root_squash, eingebunden werden.
Attachment:
pgphDKh_wlVrZ.pgp
Description: PGP signature