You are not logged in.

#1 2005-12-03 16:15:13

nuopus
Member
From: Mesa, AZ
Registered: 2005-03-09
Posts: 60

xhost default

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

#2 2005-12-03 16:59:26

arooaroo
Member
From: London, UK
Registered: 2005-01-13
Posts: 1,268
Website

Re: xhost default

Couldn't you add it to your ~/.xsession?

Offline

#3 2005-12-03 19:29:49

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: xhost default

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

Board footer

Powered by FluxBB