FS#34168 - [gparted] Use --disable-internal-agent option, remove helper script
Attached to Project:
Arch Linux
Opened by Balló György (City-busz) - Wednesday, 06 March 2013, 07:43 GMT
Last edited by Giovanni Scafora (giovanni) - Monday, 11 March 2013, 17:40 GMT
Opened by Balló György (City-busz) - Wednesday, 06 March 2013, 07:43 GMT
Last edited by Giovanni Scafora (giovanni) - Monday, 11 March 2013, 17:40 GMT
|
Details
I would like to propose the following changes in gparted
packaging (see the attachment):
- Use --disable-internal-agent option on pkexec to avoid X freeze in case of no graphical authentication agent available. (This fixes the problem reported in - Remove the launcher helper script, because gnome-panel is fixed now, and able to run pkexec from the .desktop files directly (Upstream report: https://bugzilla.gnome.org/show_bug.cgi?id=686059 ) |
This task depends upon
Closed by Giovanni Scafora (giovanni)
Monday, 11 March 2013, 17:40 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in gparted-0.14.1-5
Monday, 11 March 2013, 17:40 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in gparted-0.14.1-5
Let me know.
https://bugs.archlinux.org/task/34166#comment106918
We need consistent naming for these scripts, e.g. unetbootin renames the original binary to unetbootin.elf, and replaces it with the wrapper script. It make sense to use the same naming schema for gparted.
Please, let me know.
- The .destkop file should launch the script instead of pkexec. This is the main reason why we need the wrapper script.
- Add --disable-internal-agent option to the wrapper script to avoid X freeze, when no graphical authentication agent available.
- polkit-gnome dependency should be optional. GNOME Shell and KDE users don't need to install it, and command line users are still able to run gparted with sudo. Keeping polkit in dependencies should be enough.
I attached a diff file for the current PKGBUILD. I tested this package with various DEs and file managers, and it works fine.
Please, let me know, so I can finally close this bug report.
I think Desktops that use polkit should pull in polkit, not the programs that don't strictly need it.
City-busz what do you think about? Maybe I should remove polkit from depends field?
Please, let me know.
/usr/sbin/gparted: line 2: pkexec: command not found
Of course, it's still possible to run gparted without polkit with 'sudo gparted.efi', but I think the majority of users launch gparted from desktop menu, destkop launcher or file manager, and polkit is needed in all cases.
'pkexec --disable-internal-agent "/usr/sbin/gparted.elf" "$@"'.
The actual binary will be renamed to gparted.elf.
Since gparted will still run without polkit installed (by running 'sudo gparted.elf') I vote for keeping polkit as an optdepend.
As far as I know, the major desktop environments will have polkit installed anyway. Anyone else knows how to use tab completion.