mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 01:57:43 +00:00
Fixes #449 Tkinter (used by aa-notify) needs the $XAUTHORITY envvar to start but on some systems (e.g. OpenSuse), sudo clears it. This change add a --xauthority command-line option to set it explicitly, so aa-notify works under sudo. Signed-off-by: Maxime Bélair <maxime.belair@canonical.com> (in master) (cherry picked from commit fbd266c63f657a2b046c77a7a209e556ec1bdf12 / https://gitlab.com/apparmor/apparmor/-/merge_requests/1771, adjusted test-aa-notify.py to 4.1 branch)
Known Bugs: Will allow multiple letters in the () due to translation/unicode issues with regexing the key. User input will probably bug out in a different locale.