FS#33471 - [gparted] gparted-pkexec fail to start from menu, but works in terminal
Attached to Project:
Arch Linux
Opened by lainme (lainme) - Sunday, 20 January 2013, 13:24 GMT
Last edited by Giovanni Scafora (giovanni) - Sunday, 12 January 2014, 13:43 GMT
Opened by lainme (lainme) - Sunday, 20 January 2013, 13:24 GMT
Last edited by Giovanni Scafora (giovanni) - Sunday, 12 January 2014, 13:43 GMT
|
Details
Description:
When click the gparted menu item, an authentication box appears, but quickly show "Sorry, that didn't work, please try agian." and disappear, no matter what I did. I found that gparted is invoked by gparted-pkexec. But when I run gparted-pkexec from terminal, everything works fine without any warning or error message. The desktop environment I am using is gnome-shell. And the polkit-gnome package is already installed. Additional info: * kernel version: 3.6.11-1 * gnome-shell version: 3.6.2 * gparted version: 0.14.1-1 Steps to reproduce: * Install gparted * Run gparted from menu |
This task depends upon
Closed by Giovanni Scafora (giovanni)
Sunday, 12 January 2014, 13:43 GMT
Reason for closing: Not a bug
Sunday, 12 January 2014, 13:43 GMT
Reason for closing: Not a bug
https://bugzilla.gnome.org/browse.cgi?product=gnome-shell
> It seems that if I click the menu item in gnome-shell, there is no problem. But if I search "gparted" in gnome-shell, and press enter, the authentation will fail.
This was fixed in 3.7, see https://bugzilla.gnome.org/show_bug.cgi?id=692937#c3
Vasili:
> same here. i installed gparted and clicking on the menu item does nothing
"does nothing" is not the same as "authentication fails"...
installed polkit-gnome (0.105-1)
If you use a lightweight windowmanager, remember to run
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 to enable
graphical authentication, which may be needed for pkexec to work.
Adding '/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &' to my .xinitrc solved the problem for gparted too.
On checking the dependency list for gparted, I noticed 'polkit-gnome: to run gparted directly from menu' under the list of optional dependencies.
For unetbootin, the dependency is mandatory.
I don't think having gnome-polkit listed optional dependency for gparted in order for the menu item to work is a great idea, but on the other hand making a non-essential package mandatory isn't that great either. Maybe someone else can think of a better solution, or perhaps this bug should just be closed.