Created
March 4, 2013 07:06
-
-
Save cordarei/5080554 to your computer and use it in GitHub Desktop.
testing to see where (which workspace) the dbus notifications show up
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
#!/usr/bin/env python | |
import dbus | |
import time | |
bus = dbus.SessionBus() | |
obj = bus.get_object("org.freedesktop.Notifications", | |
"/org/freedesktop/Notifications") | |
ni = dbus.Interface(obj, "org.freedesktop.Notifications") | |
msgid = ni.Notify("Test DBus Notification", | |
0, | |
'', | |
"Test Notify", | |
"message?", | |
"", | |
{}, | |
2000) | |
time.sleep(3) | |
msgid = ni.Notify("Test DBus Notification", | |
msgid, | |
'', | |
"Test Notify", | |
"where does this message appear?", | |
"", | |
{}, | |
0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the answer is, it's controlled by the notification server (probably)
on xfce at least notifications show up on every workspace, even if you change workspaces and the notification is replacing an earlier one