Skip to content

Instantly share code, notes, and snippets.

@kyokenn
Created August 8, 2018 17:09
Show Gist options
  • Select an option

  • Save kyokenn/9d66a1fe515eafc3fe83645e509d7b47 to your computer and use it in GitHub Desktop.

Select an option

Save kyokenn/9d66a1fe515eafc3fe83645e509d7b47 to your computer and use it in GitHub Desktop.
Ubuntu Launcher API example (gi)
from gi.repository import Unity, GObject
loop = GObject.MainLoop()
launcher = Unity.LauncherEntry.get_for_desktop_id("gajim.desktop")
launcher.set_property("count", 124)
launcher.set_property("count_visible", True)
loop.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment