pyneighborhood handles gksu-wrapper wrong - can't mount

Bug #746670 reported by Linus Hoppe on 2011-03-31
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyneighborhood
High
Unassigned

Bug Description

When starting pyneighborhood 0.5.3 in ArchLinux, there are two extra messages in the debug-window:

* /usr/bin/gksu isn't accessable... trying to determine correct sudo wrapper...
* Detected gnome desktop environment... falling back to /usr/bin/gksu as sudo wrapper...

Although /usr/bin/gksu does not exist, pyneighbiorhood falls back to /usr/bin/gksu. Here, we have to change the method to detect the correct desktop-environment/sudo-wrapper.

When trying to mount a share (although /usr/bin/gksu does not exist), the folling terminal-lines are printed out because he does not find /usr/bin/gksu.

[linus@virtualbox-arch ~]$ pyNeighborhood
Can't load /etc/samba/smb.conf - run testparm to debug it
Can't load /etc/samba/smb.conf - run testparm to debug it
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 530, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/site-packages/pyneighborhood/mountwindow.py", line 203, in run
    mountpoint, error = self.mount()
  File "/usr/lib/python2.7/site-packages/pyneighborhood/mountwindow.py", line 180, in mount
    process = Popen(command, executable = command[0], stdout=PIPE, stderr=PIPE)
  File "/usr/lib/python2.7/subprocess.py", line 672, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1202, in _execute_child
    raise child_exception
OSError: [Errno 2] Datei oder Verzeichnis nicht gefunden

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers