mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-01 14:55:10 +00:00
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 <jamie@canonical.com> Acked-by: Tyler Hicks <tyhicks@canonical.com> Acked-by: Christian Boltz <apparmor@cboltz.de>
This commit is contained in:
@@ -341,7 +341,7 @@ sub send_message {
|
|||||||
|
|
||||||
# 'system' uses execvp() so no shell metacharacters here.
|
# 'system' uses execvp() so no shell metacharacters here.
|
||||||
# $notify_exe is an absolute path so execvp won't search PATH.
|
# $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;
|
my $exit_code = $? >> 8;
|
||||||
exit($exit_code);
|
exit($exit_code);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user