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

  dbus send bus=session
       interface=org.gtk.Actions
       member=DescribeAll
       peer=(name=:*),
  dbus send bus=session
       interface=org.gtk.Actions
       member=DescribeAll
       peer=(label=gnome-shell),

  dbus receive bus=session
       interface=org.gtk.Actions
       member=Changed
       peer=(name=:*),
  dbus receive bus=session
       interface=org.gtk.Actions
       member=Changed
       peer=(label=gnome-shell),

  dbus send bus=session path=/org/gtk/Settings
       interface=org.freedesktop.DBus.Properties
       member=GetAll
       peer=(name=:*, label=gsd-xsettings),
  dbus receive bus=session path=/org/gtk/Settings
       interface=org.freedesktop.DBus.Properties
       member=PropertiesChanged
       peer=(name=:*, label=gsd-xsettings),

  @{lib}/{,@{multiarch}/}gtk*/** mr,

  /etc/gtk-{3,4}.0/settings.ini r,

  owner @{user_config_dirs}/gtk-{3,4}.0/ rw,
  owner @{user_config_dirs}/gtk-{3,4}.0/bookmarks r,
  owner @{user_config_dirs}/gtk-{3,4}.0/colors.css r,
  owner @{user_config_dirs}/gtk-{3,4}.0/gtk.css r,
  owner @{user_config_dirs}/gtk-{3,4}.0/servers r,
  owner @{user_config_dirs}/gtk-{3,4}.0/settings.ini r,
  owner @{user_config_dirs}/gtk-{3,4}.0/window_decorations.css r,
