Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 165081
Collapse All | Expand All

(-)src/dbus_manager.py (-3 / +12 lines)
Lines 29-37 Link Here
29
    import dbus
29
    import dbus
30
    import dbus.service
30
    import dbus.service
31
    #Try connection du message bus
31
    #Try connection du message bus
32
    dbus.SessionBus()
32
    dbus_version = getattr(dbus, 'version',(0,0,0))
33
    if getattr(dbus, 'version', (0,0,0)) >= (0,41,0):
33
    if dbus_version >= (0,41,0) and dbus_version < (0,80,0):
34
        dbus.SessionBus()
34
        import dbus.glib
35
        import dbus.glib
36
    elif dbus_version >= (0,80,0):
37
        from dbus.mainloop.glib import DBusGMainLoop
38
        DBusGMainLoop(set_as_default=True)
39
        dbus.SessionBus()
40
    else:
41
        pass
42
        
43
35
except: dbus_imported = False
44
except: dbus_imported = False
36
else: dbus_imported=True
45
else: dbus_imported=True
37
46
Lines 104-107 Link Here
104
                song = self.player.song    
113
                song = self.player.song    
105
                return str( song.get_str("title")+ " - ("+song.get_str("album")+" - "+song.get_str("artist")+")")
114
                return str( song.get_str("title")+ " - ("+song.get_str("album")+" - "+song.get_str("artist")+")")
106
            else:
115
            else:
107
                return ""
116
                return ""

Return to bug 165081