Don’t use sudo with graphical applications
This post is based on a comment of one of my readers called gourgi.
You want to launch a graphical application with administrator privileges. Shall I use “sudo”?
No. In the case of graphical applications, you should use “gksudo” instead. “You should never use normal
sudo to start graphical applications as root. You should use
kdesudo on Kubuntu) to run such programs.
HOME=~root, and copies
.Xauthority to a
tmp directory. This prevents files in your home directory becoming owned by root.”