Caffeine 2.5 doesn't work mint16kde

Bug #1267474 reported by Vitor Inaba
This bug report is a duplicate of:  Bug #1266953: Support for other screensavers. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Caffeine
New
Undecided
Unassigned

Bug Description

The install works, but this error appear on the terminal when I try to disable the screen saver

ERROR:dbus.proxies:Introspect error on :1.16:/org/freedesktop/ScreenSaver: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownObject: No such object path '/org/freedesktop/ScreenSaver'
Traceback (most recent call last):
  File "/usr/bin/../lib/python2.7/dist-packages/gi/overrides/GLib.py", line 634, in <lambda>
    return (lambda data: callback(*data), user_data)
  File "/usr/bin/../lib/python2.7/dist-packages/caffeine/core.py", line 73, in _check_for_process
    self.setActivated(True)
  File "/usr/bin/../lib/python2.7/dist-packages/caffeine/core.py", line 100, in setActivated
    self.toggleActivated()
  File "/usr/bin/../lib/python2.7/dist-packages/caffeine/core.py", line 114, in toggleActivated
    self._performTogglingActions()
  File "/usr/bin/../lib/python2.7/dist-packages/caffeine/core.py", line 128, in _performTogglingActions
    self._toggle()
  File "/usr/bin/../lib/python2.7/dist-packages/caffeine/core.py", line 146, in _toggle
    self.screenSaverCookie = self.iface.Inhibit('net.launchpad.caffeine', "User has requested that Caffeine disable the screen saver")
  File "/usr/bin/../lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/bin/../lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/bin/../lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownObject: No such object path '/org/freedesktop/ScreenSaver'

Revision history for this message
crotalus (promac) wrote :

The same thing happens in Fedora 20.

The fix is easy.

Just change in core.py

self.susuProxy = bus.get_object('org.freedesktop.ScreenSaver', '/org/freedesktop/ScreenSaver')

for

self.susuProxy = bus.get_object('org.freedesktop.ScreenSaver', '/ScreenSaver')

Revision history for this message
Vitor Inaba (vcinaba) wrote :

ty, works too

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.