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

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{bin}/xfce4-clipman-settings
profile xfce-clipman-settings /{,usr/}{,s}bin/xfce4-clipman-settings flags=(complain) {
  include <abstractions/base>
  include <abstractions/xfce>

  @{exec_path} mr,

  @{open_path} rpx -> child-open-help,

  /etc/xdg/xfce4/panel/xfce4-clipman-actions.xml r,

  owner @{user_config_dirs}/xfce4/panel/xfce4-clipman-actions.xml rw,

  include if exists <local/xfce-clipman-settings>
}

# vim:syntax=apparmor
