# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Besanon <m231009ts@mailfence.com>
# SPDX-License-Identifier: GPL-2.0-only

  include <abstractions/fonts>
  include <abstractions/fontconfig-cache-read>
  include <abstractions/freedesktop.org>
  include <abstractions/gtk>
  include <abstractions/qt5>
  include <abstractions/wayland>
  include <abstractions/X-strict>

  signal (receive) set=(kill, term) peer=lxqt-session,

  /usr/share/hwdata/pnp.ids                             r,
  /usr/share/icu/@{int}.@{int}/*.dat                    r,
  /usr/share/lxqt/**                                    r,
  /usr/share/qt{5,6}/                                   r,
  /usr/share/qt{5,6}/{,**}                              r,

  owner @{HOME}/.Xdefaults                              r,

  owner @{user_cache_dirs}/lxqt-notificationd/*         r,

  owner @{user_config_dirs}/lxqt/*.conf                 rw,

  owner @{user_share_dirs}/sddm/xorg-session.log        rw,

  include if exists <abstractions/lxqt.d>
 
# vim:syntax=apparmor
