]>
Commit | Line | Data |
---|---|---|
11495a70 ER |
1 | --- amsn/plugins/music/infosongbird (revision 11807) |
2 | +++ amsn/plugins/music/infosongbird (working copy) | |
3 | @@ -1,7 +1,10 @@ | |
4 | #!/usr/bin/env python | |
5 | -import dbus | |
6 | -bus = dbus.SessionBus() | |
7 | -object = bus.get_object('org.mozilla.songbird', '/org/mozilla/songbird') | |
8 | -print object.getStatus() | |
9 | -print object.getTitle() | |
10 | -print object.getArtist() | |
11 | +try: | |
12 | + import dbus | |
13 | + bus = dbus.SessionBus() | |
14 | + object = bus.get_object('org.mozilla.songbird', '/org/mozilla/songbird') | |
15 | + print object.getStatus() | |
16 | + print object.getTitle() | |
17 | + print object.getArtist() | |
18 | +except dbus.exceptions.DBusException: | |
19 | + print "not installed" |