diff options
author | Martin Robinson <mrobinson@igalia.com> | 2015-10-01 17:43:40 -0700 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2015-10-01 17:43:40 -0700 |
commit | f64a960ab1a5a7e4f22a8a3b9bf7d7a6c000a4f2 (patch) | |
tree | c480bee3fbd0d52b6230e81ea4d1c5f4d710fede /python/servo/build_commands.py | |
parent | ba2714f4f607da77bd7200f88cfa16c1d10da9cd (diff) | |
download | servo-f64a960ab1a5a7e4f22a8a3b9bf7d7a6c000a4f2.tar.gz servo-f64a960ab1a5a7e4f22a8a3b9bf7d7a6c000a4f2.zip |
Make Linux build notifications transient
Continuous non-transient notifications, common in workflows involving
many syntax errors, can completely take over the message tray. Making
Linux build notifications transient prevents them from stacking up in
Gnome Shell without having to click them individually.
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r-- | python/servo/build_commands.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index 44b884d24aa..d880cb20e3a 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -35,7 +35,7 @@ def notify_linux(title, text): bus = dbus.SessionBus() notify_obj = bus.get_object("org.freedesktop.Notifications", "/org/freedesktop/Notifications") method = notify_obj.get_dbus_method("Notify", "org.freedesktop.Notifications") - method(title, 0, "", text, "", [], [], -1) + method(title, 0, "", text, "", [], {"transient": True}, -1) except: raise Exception("Please make sure that the Python dbus module is installed!") |