← Back to team overview

pyneighborhood team mailing list archive

[Bug 746670] [NEW] pyneighborhood handles gksu-wrapper wrong - can't mount

 

Public bug reported:

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

** Affects: pyneighborhood
     Importance: High
         Status: Confirmed

-- 
You received this bug notification because you are a member of
pyNeighborhood, which is subscribed to pyneighborhood.
https://bugs.launchpad.net/bugs/746670

Title:
  pyneighborhood handles gksu-wrapper wrong - can't mount

Status in pyNeighborhood:
  Confirmed

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



Follow ups

References