From bfd9e9e3d66117b4bd3f530f45b5be6eb470a61b Mon Sep 17 00:00:00 2001 From: Fusion future Date: Sun, 5 May 2024 19:47:59 +0800 Subject: [PATCH] plasmashell: add local wallpaper rules (#324) Allow plasmashell to access wallpapers in the cache folder and the user share folder. --- apparmor.d/groups/kde/plasmashell | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apparmor.d/groups/kde/plasmashell b/apparmor.d/groups/kde/plasmashell index 2a12a244..172a8365 100644 --- a/apparmor.d/groups/kde/plasmashell +++ b/apparmor.d/groups/kde/plasmashell @@ -107,6 +107,7 @@ profile plasmashell @{exec_path} flags=(mediate_deleted) { owner @{user_cache_dirs}/ksvg-elements.lock rwlk, owner @{user_cache_dirs}/ksycoca{5,6}_* rwlk -> @{user_cache_dirs}/#@{int}, owner @{user_cache_dirs}/org.kde.dirmodel-qml.kcache rw, + owner @{user_cache_dirs}/plasma_engine_potd/{,**} rw, owner @{user_cache_dirs}/plasma_theme_*.kcache rw, owner @{user_cache_dirs}/plasma-svgelements rw, owner @{user_cache_dirs}/plasma-svgelements.@{rand6} rwl -> @{user_cache_dirs}/#@{int}, @@ -166,6 +167,7 @@ profile plasmashell @{exec_path} flags=(mediate_deleted) { owner @{user_share_dirs}/plasma/{,**} r, owner @{user_share_dirs}/plasmashell/** rwkl -> @{user_share_dirs}/plasmashell/**, owner @{user_share_dirs}/user-places.xbel{,*} rwl, + owner @{user_share_dirs}/wallpapers/{,**} rw, /tmp/.mount_nextcl@{rand6}/{,*} r, owner @{tmp}/#@{int} rw,