# vim:syntax=apparmor
# ------------------------------------------------------------------
#
#    Copyright (C) 2009 Canonical Ltd.
#
#    This program is free software; you can redistribute it and/or
#    modify it under the terms of version 2 of the GNU General Public
#    License published by the Free Software Foundation.
#
# ------------------------------------------------------------------

  abi <abi/4.0>,

  # system configuration
  @{system_share_dirs}/applications/{**,} r,
  @{system_share_dirs}/*ubuntu/applications/{**,} r,
  @{system_share_dirs}/gnome/applications/{**,} r,
  @{system_share_dirs}/xfce4/applications/{**,} r,
  @{system_share_dirs}/icons/{**,}        r,
  @{system_share_dirs}/pixmaps/{**,}      r,

  # this should probably go elsewhere
  @{system_share_dirs}/mime/** r,

  @{system_share_dirs}/glib-2.0/schemas/gschemas.compiled r,

  /etc/gnome/defaults.list r,
  /etc/xfce4/defaults.list r,  

  # per-user configurations
  owner @{HOME}/.icons/{,**}            r,
  owner @{HOME}/.recently-used.xbel*    rw,
  owner @{HOME}/.local/share/recently-used.xbel* rw,
  owner @{HOME}/.config/user-dirs.dirs  r,
  owner @{HOME}/.config/mimeapps.list   r,
  owner @{user_share_dirs}/applications/{**,} r,
  owner @{user_share_dirs}/icons/{**,}        r,
  owner @{user_share_dirs}/mime/{**,}         r,

  # Include additions to the abstraction
  include if exists <abstractions/freedesktop.org.d>
