# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only

  include <abstractions/fonts>
  include <abstractions/freedesktop.org>
  include <abstractions/qt5>
  include <abstractions/wayland>
  include <abstractions/X-strict>

  @{lib}/kde{,3,4}/*.so mr,
  @{lib}/kde{,3,4}/plugins/*/ r,
  @{lib}/kde{,3,4}/plugins/*/*.so mr,

  /usr/share/hwdata/pnp.ids r,
  /usr/share/icu/@{int}.@{int}/*.dat r,
  /usr/share/desktop-base/kf{5,6}-settings/kdeglobals r,

  /etc/xdg/kcminputrc r,
  /etc/xdg/kdeglobals r,
  /etc/xdg/kwinrc r,

  owner @{HOME}/.local/ rw,
  owner @{user_cache_dirs}/ rw,
  owner @{user_config_dirs}/ rw,
  owner @{user_share_dirs}/ rw,

  owner @{user_config_dirs}/kcminputrc r,
  owner @{user_config_dirs}/kdedefaults/ r,
  owner @{user_config_dirs}/kdedefaults/kcminputrc r,
  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,

  include if exists <abstractions/kde-strict.d>
