aa-notify currently calls notify-send with urgency of 'critical'. In 
gnome-shell 
critical urgency notifications result in a notification that must be explictly
clicked to dismiss (ie, they don't time out) and gnome-shell does not honor --
expire-time with (at least) critical urgency. In other popular DEs critical
urgency notifications time out. This patch updates the urgency to 'normal' to
obtain intended behavior across DEs.

Signed-off-by: Jamie Strandboge <[email protected]>

-- 
Jamie Strandboge             | http://www.canonical.com
aa-notify currently calls notify-send with urgency of 'critical'. In
gnome-shell critical urgency notifications result in a notification that must
be explictly clicked to dismiss (ie, they don't time out) and gnome-shell does
not honor --expire-time with (at least) critical urgency. In other popular DEs
critical urgency notifications time out. This patch updates the urgency to
'normal' to obtain intended behavior across DEs.

Signed-off-by: Jamie Strandboge <[email protected]>

=== modified file 'utils/aa-notify'
--- utils/aa-notify	2015-04-28 23:03:17 +0000
+++ utils/aa-notify	2017-04-11 16:58:12 +0000
@@ -341,7 +341,7 @@
 
         # 'system' uses execvp() so no shell metacharacters here.
         # $notify_exe is an absolute path so execvp won't search PATH.
-        system "$notify_exe", "-i", "gtk-dialog-warning", "-u", "critical", "--", "AppArmor Message", "$msg";
+        system "$notify_exe", "-i", "gtk-dialog-warning", "-u", "normal", "--", "AppArmor Message", "$msg";
         my $exit_code = $? >> 8;
         exit($exit_code);
     }

=== modified file 'utils/test/test-config.py' (properties changed: +x to -x)

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
AppArmor mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor

Reply via email to