Topic: Please clarify sudo vs. gksu/gksudo
I've always thought that using sudo to open an application was discouraged. For instance, instead of executing
sudo gedit file.txtone should use
gksu gedit file.txtI'd read that when opening an application with sudo, you'll be running it as root, but will use the user's configuration settings. If one changes any settings during this session, the respective configuration files will not only change, but their permissions will also change to root ownership. Conversely, gksu (or gksudo) resolves this and uses root's configuration for that application.
I found this website, which is brought up a lot on Ubuntu Forums when people ask this same question: http://www.psychocats.net/ubuntu/graphicalsudo
Am I wrong? Is sudo actually ok to use for opening an application?