mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 22:05:27 +00:00
Merge branch 'feature/aa-notify-new-features' into 'master'
Minor improvements to aa-notify See merge request apparmor/apparmor!372 Acked-by: Christian Boltz <apparmor@cboltz.de>
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
#
|
#
|
||||||
# In a typical desktop environment one would run as a service the
|
# In a typical desktop environment one would run as a service the
|
||||||
# command:
|
# command:
|
||||||
# /usr/bin/python3 /usr/bin/aa-notify -p -w 10
|
# /usr/bin/aa-notify -p -w 10
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import atexit
|
import atexit
|
||||||
@@ -435,7 +435,8 @@ def main():
|
|||||||
shell_config = aaconfig.Config('shell')
|
shell_config = aaconfig.Config('shell')
|
||||||
|
|
||||||
# Load system's notify.conf
|
# Load system's notify.conf
|
||||||
system_config = read_notify_conf('/etc/apparmor', shell_config)
|
# By default aa.CONFDIR is /etc/apparmor on most production systems
|
||||||
|
system_config = read_notify_conf(aa.CONFDIR, shell_config)
|
||||||
# Set default is no system notify.conf was found
|
# Set default is no system notify.conf was found
|
||||||
if not system_config:
|
if not system_config:
|
||||||
system_config = {'': {'show_notifications': 'yes'}}
|
system_config = {'': {'show_notifications': 'yes'}}
|
||||||
|
Reference in New Issue
Block a user