From c733d6b9c2cd3528cc3f67527d77d3737576f84a Mon Sep 17 00:00:00 2001 From: Jose Maldonado aka Yukiteru Date: Thu, 25 Apr 2024 01:21:19 -0400 Subject: [PATCH] Modifications for qbittorrent profile and qt5.d abstractions This modifications allow read system and user qt5ct configs for better integrations with other DEs (not-KDE). --- apparmor.d/abstractions/qt5.d/complete | 4 ++++ apparmor.d/profiles-m-r/qbittorrent | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/apparmor.d/abstractions/qt5.d/complete b/apparmor.d/abstractions/qt5.d/complete index abfb0438..1c0c360e 100644 --- a/apparmor.d/abstractions/qt5.d/complete +++ b/apparmor.d/abstractions/qt5.d/complete @@ -4,3 +4,7 @@ /usr/share/qt{,5,6}/qtlogging.ini r, /usr/share/qt{,5,6}/translations/*.qm r, + + # Qt5CT + /usr/share/qt5ct/{,**} r, + owner @{HOME}/.config/qt5ct/{,**} r, diff --git a/apparmor.d/profiles-m-r/qbittorrent b/apparmor.d/profiles-m-r/qbittorrent index 5a84a838..ff7d4bd8 100644 --- a/apparmor.d/profiles-m-r/qbittorrent +++ b/apparmor.d/profiles-m-r/qbittorrent @@ -23,6 +23,7 @@ profile qbittorrent @{exec_path} { include include include + include include include include @@ -90,7 +91,6 @@ profile qbittorrent @{exec_path} { owner @{user_config_dirs}/qBittorrent/ rw, owner @{user_config_dirs}/qBittorrent/** rwkl -> @{user_config_dirs}/qBittorrent/#@{int}, - owner @{user_config_dirs}/qt5ct/{,**} r, owner @{user_share_dirs}/{,data/}qBittorrent/ rw, owner @{user_share_dirs}/{,data/}qBittorrent/** rwl -> @{user_share_dirs}/{,data/}qBittorrent/**/#@{int},