gparted menu entry depends on gksu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gparted (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gparted
When you try to run gparted from Kubuntu and don't have gksu installed, you get the message "KDEInit could not launch 'gksu'.: Could not find 'gksu' executable."
Seems like the menu entry hard codes gksu instead of choosing the best su available (is there anything like sensible-sudo?).
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: gparted 0.5.1-1ubuntu3
ProcVersionSign
Uname: Linux 2.6.32-24-generic i686
Architecture: i386
Date: Wed Aug 11 12:00:12 2010
InstallationMedia: Kubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100427)
ProcEnviron:
LANGUAGE=
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: gparted
gparted does have gksu as a "recommends:". However, if the gksu package is manually removed by the user, then yes, gparted running from the menu will be broken. This I think is true for other sudo requiring gnome/gtk packages when ran from menus on KDE and I imagine conversely true for KDE apps that use kde's sudo menu entries when on gnome.
Perhaps what is needed is an "alternatives" method to support different sudo via a symlink based on the desktop. This is a broader question of course, like the idea of a "sensible-sudo" that might for example be a script that uses $DESKTOP_SESSION. The packager could also change gksu from a "Recommends:" to a hard "Depends:", but I think this is not a good solution.