I'm pretty sure gnomesu is broken

For example, the gparted application menu item doesn’t work; using it means that there is almost no filesystem support. The only way to get it to work is to open a terminal, run ‘su -’, and then open it from there.

As another example, I tried creating a nautilus script to open files as root with a command like this:

for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
    gnomesu -c "gnome-open '$uri'"
done

When I try using it, it just fails. Typing out the command in the terminal gives this (tested on a text file):

No protocol specified
(gedit:13672): Gtk-WARNING **: cannot open display: :0

I’m pretty sure the problem is that it’s granting privileges, but not using the full root environment, or something along those lines.

I’m using libgnomesu 1.0.0. Any suggestions?

Strange, same libgnomesu, GNOME 3, and ‘gnomesu gedit filename’ simply opens the file in gedit with root permissions.

On 2011-05-30 00:36, Knurpht wrote:
>
> Strange, same libgnomesu, GNOME 3, and ‘gnomesu gedit filename’ simply
> opens the file in gedit with root permissions.

Why would be it strange that gnome 3 behaves differently than gnome 2?


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)