Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I read somewhere that people should use gksudo for applications that use the Gtk GUI instead of sudo? What's the reasoning for this?

share|improve this question
add comment

1 Answer

up vote 9 down vote accepted

Source.

  1. There are other times, though, when side effects can be as mild as Firefox extensions not sticking or as extreme as as not being able to log in any more because the permissions on your .ICEauthority changed.

These errors occur because sometimes when sudo launches an application, it launches with root privileges but uses the user's configuration file.

For example, if you launch Firefox with the command

 gksudo firefox

it uses root's Firefox configuration file.

But if you launch Firefox with the command

 sudo firefox

it runs with root privileges but uses the user's configuration file.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.