2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 01:57:43 +00:00
Maxime Bélair 36546f8c35
aa-notify: Add --xauthority to set $XAUTHORITY under sudo
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)
2025-08-14 13:55:06 +02:00
..
2024-08-06 13:36:32 +09:30
2025-01-09 01:31:39 -08:00

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.