9

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

0

1 Answer 1

12

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.

Not the answer you're looking for? Browse other questions tagged .