feat(kde): add xdg-desktop-portal-kde

This commit is contained in:
Alexandre Pujol 2023-03-31 17:06:03 +01:00
parent 0efc3e0703
commit ac75f2ee5c
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,38 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{libexec}/xdg-desktop-portal-kde
profile xdg-desktop-portal-kde @{exec_path} {
include <abstractions/base>
include <abstractions/dri-common>
include <abstractions/freedesktop.org>
include <abstractions/mesa>
include <abstractions/nameservice-strict>
@{exec_path} mr,
/usr/share/hwdata/pnp.ids r,
/usr/share/mime/{,**} r,
/usr/share/qt/translations/*.qm r,
owner @{HOME}/.Xauthority r,
owner @{HOME}/.cache/*.kcache r,
owner @{user_cache_dirs}/icon-cache.kcache rw,
owner @{user_config_dirs}/kdedefaults/kdeglobals r,
owner @{user_config_dirs}/kdedefaults/kwinrc r,
owner @{user_config_dirs}/kdeglobals r,
owner @{user_config_dirs}/kwinrc r,
@{PROC}/sys/kernel/core_pattern r,
/dev/tty r,
include if exists <local/xdg-desktop-portal-kde>
}

View File

@ -280,6 +280,7 @@ xdg-desktop-icon complain
xdg-desktop-portal attach_disconnected,complain xdg-desktop-portal attach_disconnected,complain
xdg-desktop-portal-gnome complain xdg-desktop-portal-gnome complain
xdg-desktop-portal-gtk complain xdg-desktop-portal-gtk complain
xdg-desktop-portal-kde complain
xdg-document-portal complain xdg-document-portal complain
xdg-permission-store attach_disconnected,complain xdg-permission-store attach_disconnected,complain
xdg-user-dirs-gtk-update complain xdg-user-dirs-gtk-update complain