Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

Commit

Permalink
Added enabler check for telepathy
Browse files Browse the repository at this point in the history
  • Loading branch information
dhananjaysathe committed Jan 19, 2013
1 parent 5498a4b commit 9096523
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bin/spotify
Expand Up @@ -171,10 +171,11 @@ class SpotifyGnome(object):
self.notification.update(title, body, icon)
self.notification.show()
status = "♫ ".decode('utf8')+status_content+" ♫".decode('utf8')
if self.telepathy_away :
self.telepathy_accn_manager.set_all_requested_presences(telepathy.ConnectionPresenceType.AWAY,'away', status)
else:
self.telepathy_accn_manager.set_all_requested_presences(telepathy.ConnectionPresenceType.AVAILABLE,'available', status)
if ENABLE_TELEPATHY:
if self.telepathy_away :
self.telepathy_accn_manager.set_all_requested_presences(telepathy.ConnectionPresenceType.AWAY,'away', status)
else:
self.telepathy_accn_manager.set_all_requested_presences(telepathy.ConnectionPresenceType.AVAILABLE,'available', status)

if __name__ == "__main__":
SpotifyGnome()

0 comments on commit 9096523

Please sign in to comment.