You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Possible solution. This appears to get rid of the deprecation warning and keep the tray icon working. It follows the state of stopped, running, and cycles white-black-white as expected while restarting from the tray icon menu.
def update_terminal(self):
status = self.non_block_read().strip()
nowts = int(time.time())
kinto_icon_desc = "Kinto"
if (nowts - self.unixts) > 5 and (status=='active' and self.indicator.get_icon() != os.environ['HOME']+'/.config/kinto/kinto-invert.svg'):
self.indicator.set_icon_full(os.environ['HOME']+'/.config/kinto/kinto-invert.svg', kinto_icon_desc)
elif (nowts - self.unixts) > 5 and (status == 'inactive' and self.indicator.get_icon() != os.environ['HOME']+'/.config/kinto/kinto.svg'):
self.indicator.set_icon_full(os.environ['HOME']+'/.config/kinto/kinto.svg', kinto_icon_desc)
self.last_status = status
Original for reference to changes:
def update_terminal(self):
status = self.non_block_read().strip()
nowts = int(time.time())
if (nowts - self.unixts) > 5 and (status=='active' and self.indicator.get_icon() != os.environ['HOME']+'/.config/kinto/kinto-invert.svg'):
self.indicator.set_icon(os.environ['HOME']+'/.config/kinto/kinto-invert.svg')
elif (nowts - self.unixts) > 5 and (status == 'inactive' and self.indicator.get_icon() != os.environ['HOME']+'/.config/kinto/kinto.svg'):
self.indicator.set_icon(os.environ['HOME']+'/.config/kinto/kinto.svg')
self.last_status = status
Reference for set_icon_full, it requires an additional "description" argument after the name of the icon:
Edit: See possible solution, next post.
Another minor deprecation warning, in
kintotray.py
:Only reference I can immediately find for what to change it to is here:
https://askubuntu.com/questions/490634/application-indicator-icon-not-changing-until-clicked
The text was updated successfully, but these errors were encountered: