guidance-power-manager fails when not running under kde

Bug #138952 reported by Klaus S. Madsen
2
Affects Status Importance Assigned to Milestone
guidance-power-manager (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Binary package hint: kde-guidance-powermanager

When running guidance-power-manager outside of KDE, the hibernate and suspend buttons does not work, if Lock Screen on Resume is enabled.

The following is output to the console, when clicked:

  File "/usr/share/python-support/kde-guidance-powermanager/guidance-power-manager.py", line 487, in suspend
    self.lockScreen()
  File "/usr/share/python-support/kde-guidance-powermanager/guidance-power-manager.py", line 482, in lockScreen
    ok, foo = kdesktop.KScreensaverIface.lock()
  File "/usr/lib/python2.5/site-packages/dcopext.py", line 535, in __getattr__
    return DCOPMeth(self, item)
  File "/usr/lib/python2.5/site-packages/dcopext.py", line 578, in __init__
    self.methods = [str(meth) for meth in dcopObj.objmethods]
TypeError: 'NoneType' object is not iterable
Error in sys.excepthook:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/apport_python_hook.py", line 42, in apport_excepthook
    binary = os.path.realpath(os.path.join(os.getcwdu(), sys.argv[0]))
IndexError: list index out of range

Original exception was:
Traceback (most recent call last):
  File "/usr/share/python-support/kde-guidance-powermanager/guidance-power-manager.py", line 487, in suspend
    self.lockScreen()
  File "/usr/share/python-support/kde-guidance-powermanager/guidance-power-manager.py", line 482, in lockScreen
    ok, foo = kdesktop.KScreensaverIface.lock()
  File "/usr/lib/python2.5/site-packages/dcopext.py", line 535, in __getattr__
    return DCOPMeth(self, item)
  File "/usr/lib/python2.5/site-packages/dcopext.py", line 578, in __init__
    self.methods = [str(meth) for meth in dcopObj.objmethods]
TypeError: 'NoneType' object is not iterable

I'm running Gutsy with kde-guidance-powermanager version 0.8.0svn20070727-0ubuntu6

Revision history for this message
Luka Renko (lure) wrote :

In what DE are you running powermanager?
Guidance was designed for KDE desktop, therefore it will not work properly in non-KDE environment. We should however handle such situations gracefully

Changed in kde-guidance:
assignee: nobody → lure
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Klaus S. Madsen (ubuntu-hjernemadsen) wrote :

I'm running this under Fluxbox, with xscreensaver as the screensaver. So no dcop accessible screensaver.

But apart from the screensaver problem, the the program seems to work perfectly (and is much nicer than klaptop_check).

Revision history for this message
Luka Renko (lure) wrote :

Marking as wishlist: guidance could make lock feature optional or call xscreensaver if dcop is not available.

Changed in kde-guidance:
importance: Low → Wishlist
status: Incomplete → Triaged
Revision history for this message
Sebastian Kügler (sebasje) wrote :

I've just committed a fix that makes powermanager work even if the KDE screensaver could not be reached.

Luka Renko (lure)
Changed in kde-guidance (Ubuntu):
assignee: Luka Renko (lure) → nobody
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

This uses DBus now for the screensaver, so it should be pretty desktop-agnostic.

affects: kde-guidance (Ubuntu) → guidance-power-manager (Ubuntu)
Changed in guidance-power-manager (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.