Le dimanche 19 mars 2017 à 12:04 +0100, Sascha Manns a écrit :
> Hello List,
> i'm using Tumbleweed with the GNOME Desktop.
> Also i have installed galternatives and tried to launch it in the
> console. But i got:
> sascha@linux-ktr9:~$ sudo galternatives 
> /usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py:57:
> GtkWarning: could not open display

This is the issue.. Using sudo on a GUI program. It is stripping
DISPLAY environmnent variable.

You should avoid to run graphical program as root, but if you really
must, either use "xdg-su -c program" or using "sudo -E" but the second
one might cause a lot of issues with interaction with other desktop
components (dbus socket, etc..)

Frederic Crozat
Enterprise Desktop Release Manager

To unsubscribe, e-mail: opensuse-gnome+unsubscr...@opensuse.org
To contact the owner, e-mail: opensuse-gnome+ow...@opensuse.org

Reply via email to