Quote:
Originally Posted by zku
@Didier Spaier
I use es_ES
bash-4.3# LANG=es_ES.utf8 inkscape
No protocol specified
(inkscape:3433): Gtk-WARNING **: cannot open display: :0
********************
bash-4.3# export LANG=es_ES.utf8 inkscape
No protocol specified
(inkscape:3433): Gtk-WARNING **: cannot open display: :0
**********
it doesn'' T work
|
As Didier alluded, this does not work because you are likely logged in as your normal user but trying to start inkscape as root. As Didier mentioned, it is never a good idea to start a graphical program as root except for certain occasions (like partitioning a drive using gparted or a graphical file manager if you need to manipulate root owned files). However, it is extremely important to not run a graphical program while logged in as a normal user the way you did, because it will overwrite files in your user's home directory as root and can break things. Hopefully this error happened early enough that it prevented the program from overwriting files in your user's home directory.
If you need to start a graphical program as root while logged in as another user, use kdesu (or install gksu from SBo if you don't have KDE installed). But there should be no reason to use inkscape as root, so I would suggest running your command from the terminal as the user you're logged in as.