I would appreciate some help with running programs in X (WindowMaker) as another user.
Until recently (Debian Stretch) I was able to run graphical programs in X as a second user, like so:
- log into X as user1
- run "xhost+"
- run "su - user2"
- run any graphical program (gthumb, konquerer, ...) as user2
Now when I try to run a program as user2, I get
Code: Select all
user2@localhost:~$ gthumb
error: XDG_RUNTIME_DIR not set in the environment.
Segmentation fault
Related to this, /run/user/1001 not being created on user switch has always caused me some grief b/c audio would not work for user2. But I could work around that by piping pulse through a socket. But now graphics are also broken and that I can't seem to work around.
Any help would be much appreciated!