spacepaste

  1.  
  2. self.notifyservice = self.bus.get_object('org.freedesktop.Notifications', '/org/freedesktop/Notifications')
  3. self.notifyservice = dbus.Interface(self.notifyservice, "org.freedesktop.Notifications")
  4. # Checking if notifications are in queue. If so, close them (doesn't really work?)
  5. if (self.notifyid > 0):
  6. self.notifyservice.CloseNotification(self.notifyid)
  7. self.notifyid = 3
  8. self.notifyservice.Notify("notify", self.notifyid, tAlimage,'Added', rArname + '\n' + rTname +'\n '+ rAlname+ ' ('+rAlyear+')',[],{},100)
  9.