Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 486440 - net-misc/wicd: avoid gksu dependency
Summary: net-misc/wicd: avoid gksu dependency
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Thomas Kahle (RETIRED)
URL: https://bugs.launchpad.net/wicd/+bug/...
Whiteboard:
Keywords:
Depends on:
Blocks: 425156
  Show dependency tree
 
Reported: 2013-09-29 09:37 UTC by Pacho Ramos
Modified: 2016-10-09 12:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2013-09-29 09:37:27 UTC
As explained in bug 425156, gksu is dead and should be replaced by direct polkit usage when needed (as was done with gedit). But, with this exact package, I don't fully understand why the need of gksu, I have also checked other distributions and looks like none of them are using any system to gain root privileges

Thanks
Comment 1 Pacho Ramos gentoo-dev 2013-09-29 09:41:14 UTC
gedit -> gparted
Comment 2 Thomas Kahle (RETIRED) gentoo-dev 2013-10-06 22:37:39 UTC
According to the manpage 

Custom Scripts

If  you need to run any custom commands before or after connecting to or disconnecting from a network, Wicd supports this; however, you will need to have a graphical sudo helper installed  (currently  supported are kdesu, gksu, and ktsuss).

What's the best course of action given that we want to support this feature?

We could drop the dependency on graphical sudo and make an einfo to explain that the user should install one of the three if she wants to use custom scripts.

Note that wicd is also kind of dead (at least stalled), so that it is unexpected that upstream will do something about this.
Comment 3 Pacho Ramos gentoo-dev 2013-10-07 06:32:01 UTC
The idea would be to migrate from gksu to pkexec usage, for that, we will need to create a polkit rule similar to org.gentoo.pkexec.gparted.policy (you can see it in gparted FILESDIR). In summary, it tells polkit the binary to allow to run, that X11 should be allowed to it and a bit more.

In the case of gparted, we also provide a script called "gparted-pkexec" that runs:
#!/bin/sh
pkexec "/usr/sbin/gparted" "$@"

and we change the desktop file to call that script instead of "gksu gparted"
Comment 4 Thomas Kahle (RETIRED) gentoo-dev 2013-10-11 14:21:35 UTC
I agree that this would be nice, but I don't have the time to implement this.  Patches are welcome.
Comment 5 Pacho Ramos gentoo-dev 2013-10-11 17:21:35 UTC
Will try to review when I have time :)
Comment 6 Pacho Ramos gentoo-dev 2016-09-18 11:48:08 UTC
Maybe one option is to drop gksu as provider and rely on kdesu and co :/
Comment 7 Pacho Ramos gentoo-dev 2016-10-09 12:08:05 UTC
[master 02a038f] net-misc/wicd: gksu is dead for ages and vulnerable, drop optional dep
 1 file changed, 151 insertions(+)
 create mode 100644 net-misc/wicd/wicd-1.7.4-r2.ebuild