So, I've got Ubuntu Server 17.10 running with xorg and openbox and I've got this strange problem that I didnt have with my previous build using bspwm.
The problem is that I can't launch any app inside openbox except XTerm which opens normally.
But when I start any app with sudo, e.g. sudo gedit
, it launches normally and any subsequent app will launch normally, even without sudo. So I only need to start one app with sudo and the rest will work just fine.
I get no output when I run them without sudo, no errors or anything so I dont know where to start looking...
Thanks for the help!
P.S. Its running in VirtualBox if it makes any difference...
sudo
with GUI application programs. Usesudo -H
instead, for examplesudo -H gedit
-- Otherwise the ownership of the configuration files might be modified (toroot
instead of the normal user ID), and it will make it difficult or impossible to use the program with the normal user ID. See for example this link, Why don't gksu/gksudo or launching a graphical application with sudo work with Wayland? – sudodus Feb 28 '18 at 09:29gksudo
but I did this for a quick example. – xCode Feb 28 '18 at 13:43sudo chown -R $USER:$USER $HOME
. Where$USER
and$HOME
are environment variables and you can check their values by the command:echo $USER $HOME
. – pa4080 Feb 28 '18 at 13:48