Wicd 'Scripts' button not launching root PW window
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wicd |
New
|
Undecided
|
Unassigned |
Bug Description
Package: wicd
Version: 1.7.4-1pclos2016
Kernel 4.11.3-pclos2 #1 SMP Sun Jun 4 22:16:40 CDT 2017 x86_64 x86_64 x86_64 GNU/Linux
Expected behaviour:
Scripts button in the network profile's properties dialog should launch a window asking for root password and then launch the Configure Scripts (as superuser) window.
Behaviour:
Scripts button in a network profile's properties dialog launches a window with this text:
---
<b>Failed to run /usr/share/
Failed to exec new process: No such file or directory
---
[groucho@groucho ~]$ apt-cache depends wicd
wicd-1.
Depends: python >= 2.6
Depends: python-urwid
Depends: python-gobject
Depends: pygtk2.0
Depends: python-dbus
Depends: wireless-tools
Depends: </bin/sh>
bash-
Depends: </bin/sh>
bash-
Depends: </bin/sh>
bash-
Depends: </bin/sh>
bash-
Depends: python >= 2.7
[groucho@groucho ~]$
Installed:
python 2.7.9
python-urwid 1.1.1
python-gobject 2.28.6
pygtk2.0 2.24.0
python-dbus 1.2.4
wireless-tools 30
bash-4.
Other:
Running /usr/share/
Running gksu /usr/share/
Running gksudo /usr/share/
---
<b>Failed to run /usr/share/
Failed to exec new process: No such file or directory
---
Thanks in advance.
A.
Hello:
I think I have found a simple solution to this issue which can be instrumented without any coding.
In my case, this problem arose because my distro (PCLinuxOS) does not have gksudo.
Or sudo for that matter.
I found a lead to the problem here: /bugs.debian. org/cgi- bin/bugr. ..cgi?bug= 575403
https:/
Someone had a similar issue with the graphical sudo program needed for Wicd.
In the absence of any one of the three graphical sudo programs Wicd has as options (gksudo, gksu or ktsuss), the misc.py script does this:
[code] sudo_prog( prog_num= 0): _sudo_dict[ prog_num] ) desktop_ environment( ) 'PATH'] .split( ":") [os.path. join(p, prog) for p in env_path]) exists( path):
549 def choose_
550 """ Try to intelligently decide which graphical sudo program to use. """
551 if prog_num:
552 return find_path(
553 desktop_env = detect_
554 env_path = os.environ[
555 paths = []
556
557 if desktop_env == "kde":
558 progs = ["kdesu", "kdesudo", "ktsuss"]
559 else:
560 progs = ["gksudo", "gksu", "ktsuss"]
561
562 for prog in progs:
563 paths.extend(
564
565 for path in paths:
566 if os.path.
567 return path
568 return ""
[/code]
In PCLinuxOS, gksudo exists but only as a link to the gksu executable, which is why running ...
[code] wicd/gtk/ configscript. py '4' 'wireless'
gksudo /usr/share/
[/code]
... fails but ...
[code] wicd/gtk/ configscript. py '4' 'wireless'
gksu /usr/share/
[/code]
... works as expected.
The script does find gksudo but it is not an executable so it fails. (?)
So the solution found by the author of the post above is to change the order of the graphical sudo programs the misc.py script will use when none is found.
ie:
---
560 progs = ["gksudo", "gksu", "ktsuss"] <- change to progs = ["gksu", "gksudo", "ktsuss"]
---
This would make the absence of gksudo (more and more common) a non-issue and carry it through until Wicd uses PolKit to authenticate UIs to the daemon.
Comments and corrections welcome.
Thanks in advance.
C.