open as administrator open folders twice

Bug #79110 reported by yop
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gksu (Ubuntu)
Confirmed
Low
Ubuntu Desktop Bugs
Nominated for Intrepid by Ansus
Nominated for Jaunty by Ansus

Bug Description

Binary package hint: nautilus

If I use the Nautilus extension gksu (open as administrator) to open a folder then it will open the selected folder and also the root home folder.

Also if I like to open a folder, then I can't have the folder open and right click inside the folder and select open as administrator to open the folder. I need to go back one step, and then select the folder I like to open as administrator.

yop (yop)
description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug. What version of Ubuntu do you use? The current gksu has no such feature. The bug would be a bug from the extension not from the nautilus package

Changed in nautilus:
assignee: nobody → desktop-bugs
status: Unconfirmed → Needs Info
Revision history for this message
yop (yop) wrote :

Edgy 6.10 and the gksu extension for nautilus ver 1.9.3-1ubuntu2
No but there was no nautilus-extension section so I did put it in nautilus.

Changed in nautilus:
importance: Undecided → Low
status: Needs Info → Unconfirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Do you still have the bug on Ubuntu 7.04?

Revision history for this message
yop (yop) wrote :

Yep I just installed it and it's still the same behavior.
If I select a folder and then click "open as administrator" and type the pass, it will open the selected folder + the root (/).

It's nothing major I use nautilus actions instead, gksu "nautilus" %M typ folder only. this will open the selected folder only.
Same goes for files gksu "gedit" %M typ files only.

Revision history for this message
xcxcx112 (xcxcx112) wrote :

Binary package hint: nautilus-gksu

I can confirm this bug in Edgy and it is still existing in Ubuntu Feisty 7.04 Final version.
Ask google i know, people in other forum have also experienced this bug.

It is very annoying and confusing, you don't know which folder belongs to root and which is not.
It opens 2 windows (folders) at the same time as said above

nautilus-gksu 2.0.0-1ubuntu3

Changed in gksu:
status: Unconfirmed → Confirmed
Revision history for this message
Clement Lefebvre (clementlefebvre) wrote :

We're adding this functionality into Linux Mint so I had a look at it and I can confirm that this bug is still present in Hardy. Basically when a folder is open with nautilus-gksu this is what happens:

- A nautilus instance is launched on the selected folder with root permissions.
- Another nautilus instance (which appears behind the first one) is launched on the user's home folder, also with root permissions.

The code for nautilus-gksu is in the package gksu. If I was keen on debugging the C code I'd have a look at pthread_create (&new_thread, NULL, start_gksu_thread, (void*)full_cmd); in libnautilus-gksu.c (gksu version 2.0.0).

I'll implement this as a script instead but here you go anyway if you want to fix this upstream.

Also, in the French translation:
msgid "Open as administrator"
msgstr "Ouvrir en tant administrateur"

should be

msgid "Open as administrator"
msgstr "Ouvrir en tant qu'administrateur"

And finally... it would be nice for nautilus-gksu to use an icon.

Now, I'm going a bit too far as I'm touching on off-topic things here but... this kind of functionality is quite powerful and there's no visual way to distinguish a root nautilus window from a normal one. I couldn't find a way to force nautilus into using a different title. Unless nautilus is able to look different for the user in this particular context I'd suggest to use another file browser. It's ok to edit a particular file or to launch a particular program as root, but having root nautilus instances without any visual hint for the user to remember is quite a risk to the stability of the system :)

Good luck to the devs and sorry for throwing all these ideas into a single comment.

Revision history for this message
Beniamino (skumpic-deactivatedaccount-deactivatedaccount) wrote :

I can confirm that this bug is still present in Hardy

Thanks
Skumpic

Revision history for this message
asebastian0 (asebastian2) wrote :

Still here in hardy as of today. Anybody care to share a temporary fix?

-Alan

Revision history for this message
Siva Chandran P (siva-chandran-p) wrote :

Found the bug, please refer Bug #252633(patch attached).

Revision history for this message
mbsullivan (mbsullivan) wrote :

I can confirm that Siva Chandran P's patch fixes the bug for me.

Revision history for this message
Ansus (neptunia) wrote :

Confirming in Intrepid. Seems nobody cares to include the proposed patch.

Revision history for this message
Matthias Metzger (macellarius) wrote :

Patch works. Great.

Revision history for this message
Matthias Metzger (macellarius) wrote :

I created a PPA with updated debs containing the patch from Siva Chandran P.
Binary packages: gksu; nautilus-gksu
https://launchpad.net/~macellarius/+archive

Revision history for this message
Ansus (neptunia) wrote :

What about adding this in Intrepid-proposed?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.