I am logged as user A. I want to run a GUI application as user B. User, not root. User B is local too, not remote, I only need different environment variables. I don't want to run the second X, I want them on the same display. I have no problem with programs running in terminal, the
su - ... works. For graphical there is an error message:
Application initialization failed: couldn't connect to display ":0.0"
Gtk-WARNING **: cannot open display: :0.0
Is there a good way to fix it? The article about correct using of
xhost or something?