You are not logged in.
I run some X11-apps as a different user than the user with which i log on to the desktop (XFCE) so after a reboot I always have to type "xhost +" in a terminal before being able to launch these X11-apps as a different user.
So how can I make "xhost +" the default at every boot?
In which config file do I have to set this to avoid having to type it manually each time?
Last edited by tux_99 (Yesterday 20:39:50)
“Either the users control the program – or the program controls the users” Richard Stallman
Offline
BTW, I already tried creating /etc/X0.hosts with relevant entries (see below) as indicated in the xhost manpage but that doesn't seem to have any effect.
$ more /etc/X0.hosts
+SI:localuser:username1
+SI:localuser:username2“Either the users control the program – or the program controls the users” Richard Stallman
Offline
Another approach would be to only use 'xhost +' when you want to be the other user and then 'xhost -' when you're done. Put the following script in your path, make it executable and use it like this. I'm calling it 'swu'. You can call it whatever you like.
Open a terminal.
swu <otheruser>
(run some commands as the other user)
exitHere's the magic sauce:
#!/usr/bin/env bash
# swu
otheruser="$1"
xhost +
su "$otheruser"
xhost -
exit 0Offline