Apps won't start without sudo first
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
2
down vote
favorite
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...
server gui openbox
add a comment |Â
up vote
2
down vote
favorite
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...
server gui openbox
3
Please remember to avoid plainsudo
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 at 9:29
Thanks for the tip, I usually run them withgksudo
but I did this for a quick example.
â xCode
Feb 28 at 13:43
1
You can change the ownership, of the whole content in your home directory, back to your user by the command:sudo 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 at 13:48
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
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...
server gui openbox
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...
server gui openbox
server gui openbox
edited Feb 28 at 13:44
asked Feb 28 at 9:19
xCode
112
112
3
Please remember to avoid plainsudo
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 at 9:29
Thanks for the tip, I usually run them withgksudo
but I did this for a quick example.
â xCode
Feb 28 at 13:43
1
You can change the ownership, of the whole content in your home directory, back to your user by the command:sudo 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 at 13:48
add a comment |Â
3
Please remember to avoid plainsudo
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 at 9:29
Thanks for the tip, I usually run them withgksudo
but I did this for a quick example.
â xCode
Feb 28 at 13:43
1
You can change the ownership, of the whole content in your home directory, back to your user by the command:sudo 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 at 13:48
3
3
Please remember to avoid plain
sudo
with GUI application programs. Use sudo -H
instead, for example sudo -H gedit
-- Otherwise the ownership of the configuration files might be modified (to root
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 at 9:29
Please remember to avoid plain
sudo
with GUI application programs. Use sudo -H
instead, for example sudo -H gedit
-- Otherwise the ownership of the configuration files might be modified (to root
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 at 9:29
Thanks for the tip, I usually run them with
gksudo
but I did this for a quick example.â xCode
Feb 28 at 13:43
Thanks for the tip, I usually run them with
gksudo
but I did this for a quick example.â xCode
Feb 28 at 13:43
1
1
You can change the ownership, of the whole content in your home directory, back to your user by the command:
sudo 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 at 13:48
You can change the ownership, of the whole content in your home directory, back to your user by the command:
sudo 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 at 13:48
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1010570%2fapps-wont-start-without-sudo-first%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
3
Please remember to avoid plain
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 at 9:29
Thanks for the tip, I usually run them with
gksudo
but I did this for a quick example.â xCode
Feb 28 at 13:43
1
You can change the ownership, of the whole content in your home directory, back to your user by the command:
sudo 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 at 13:48