Exemplo n.º 1
0
 def user_online_status(self, user, online_text):
   name = user.DisplayName or user.FullName or user.Handle
   log("User "+name+" "+online_text, INFO)
   if not settings.get_notify_on_useronlinestatuschange() or self.skype.skype_presence == Skype4Py.cusDoNotDisturb or user.Handle == 'echo123':
       return
       
   icon = ""
   if settings.get_display_notification_avatars():
       avatar = SkypeAvatar(user.Handle)
       if avatar.filename:
           icon = avatar.filename
       else:
           icon = "/usr/share/skype-wrapper/icons/skype-wrapper-48.svg"
     
   helpers.notify(name, online_text, icon, "online://"+user.Handle, False, False)  
 def user_online_status(self, user, online_text):
   name = user.DisplayName or user.FullName or user.Handle
   log("User "+name+" "+online_text, INFO)
   if not settings.get_notify_on_useronlinestatuschange() or self.skype.skype_presence == Skype4Py.cusDoNotDisturb or user.Handle == 'echo123':
       return
       
   icon = ""
   if settings.get_display_notification_avatars():
       avatar = SkypeAvatar(user.Handle)
       if avatar.filename:
           icon = '-i "'+avatar.filename+'" '
       else:
           icon = '-i "/usr/share/skype-wrapper/icons/skype-wrapper-48.svg" '
   
   os.system('notify-send --urgency low '+icon+'"'+name+'" "'+online_text+'"');
Exemplo n.º 3
0
 def user_online_status(self, username, fullname, online_text):
   log("User "+username+" "+online_text, INFO)
   if not settings.get_notify_on_useronlinestatuschange() or self.skype.skype_presence == Skype4Py.cusDoNotDisturb or username == 'echo123':
       return
       
   icon = ""
   if settings.get_display_notification_avatars():
       avatar = SkypeAvatar(username)
       if avatar.filename:
           icon = '-i "'+avatar.filename+'" '
       else:
           icon = '-i "/usr/share/skype-wrapper/icons/skype-wrapper-48.svg" '
   
   if not fullname:
       fullname = username
       
   os.system('notify-send '+icon+'"'+fullname+'" "'+online_text+'"');