Tag Info

New answers tagged

1

Try running xhost + in your terminal, and then running the command again. I can't reproduce your problem on 14.04, but this has worked for me in the past when sudo / gksu threw this error.


1

Try the following to see if ROOT is the owner of your configuration file (this can happen when you use 'sudo' instead of 'gksudo' in launching app with a GUI). find $HOME -not -user $USER -exec ls -lad {} \; In this case use: sudo chown -R %YOUR_USERNAME%:%YOUR_USERNAME% %TARGET_FILE_OR_DIRECTORY% to change configuration files' owner. Cheers


0

You can use sudo -H gedit instead. From man sudo: -H, --set-home Request that the security policy set the HOME environment variable to the home directory specified by the target user's password database entry. Depending on the policy, this may be the default behavior. AFAIK this request is honored on ...



Top 50 recent answers are included