You are not logged in.
Pages: 1
Is there a good way to set a default for xhost? I am using KDE right now, and have added a menu entry to run jacman using ksu. The problem is that jacman does not execute because it has no access to the current display running as another user. The only way I can get it to work is to type xhost +127.0.0.1 first, and then I can do ksu -c jacman.
Aside from putting xhost +127.0.0.1 in the script of the current user, is there away to affect the default configuration?
Offline
Couldn't you add it to your ~/.xsession?
Offline
In ~./bashrc, add:
# create an xauth key for root user
umask 377
/usr/X11R6/bin/xauth extract /tmp/user.xauth $DISPLAY
umask 022
In /root/.bashrc, add:
# create an xauth key for root user
if [ -f /tmp/user.xauth ]; then
xauth merge /tmp/user.xauth
fi
Offline
Pages: 1