I think this came up last week too. As you are trying to load with ‘sudo’
try, instead, ‘gnomesu’ or ‘kdesu’ depending on if you are using Gnome or
KDE. I think you’ll enjoy the results. The reason is that you need to be
able to connect to your desktop (owned by your user) as ‘root’ (the user
you are becoming). There are other ways, but gnomesu and kdesu make it
easy for you:
gnomesu gedit /etc/fstab
Good luck.
ciampucci wrote:
> Hi,
> with opensuse 11.1 (gnome desktop environment) I receive a strange
> message when trying to open a file, like fstab, with gedit.
>
> If I type:
>
>
> Code:
> --------------------
> sudo gedit /etc/fstab
> --------------------
>
>
> after entered the password I obtain this:
>
>
> Code:
> --------------------
> Gtk-WARNING **: cannot open display:
> --------------------
>
>
> I looked for an answer in the web but nothing. Have you got any idea?
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
So what in practice is the difference between gnomesu and gksudo? I’ve always used gksudo, and it seems to work, but lots of people keep recommending gnomesu. Puzzled…
Thanks - must’ve been confusing things with ubuntu, in which it still works. I’ve been playing with KDE so much I hadn’t noticed I was telling people the wrong thing.