Last active
January 5, 2024 10:18
-
-
Save lephuongbg/1830d1e03ac45faa11e1bbd7204eee5d to your computer and use it in GitHub Desktop.
Call Unity Launcher API with gdbus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set a badge count of 1 to Firefox launcher icon | |
gdbus emit --session -o / \ | |
-s com.canonical.Unity.LauncherEntry.Update \ | |
"application://firefox.desktop" "{'count':<1>,'count-visible':<true>}" | |
# Hide badge count | |
gdbus emit --session -o / \ | |
-s com.canonical.Unity.LauncherEntry.Update \ | |
"application://firefox.desktop" "{'count-visible':<false>}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment