# vim:syntax=apparmor # ------------------------------------------------------------------ # # Copyright (C) 2019-2021 Mikhail Morfikov # # 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 , include @{exec_path} = /{usr/,}bin/scrot profile scrot @{exec_path} { include include include @{exec_path} mr, # "mv" is needed to change the image dir /{usr/,}bin/{,ba,da}sh rix, /{usr/,}bin/mv rix, # The image dir owner @{HOME}/*.png rw, owner @{HOME}/.Xauthority r, /dev/shm/#[0-9]*[0-9] rw, owner @{HOME}/.icons/default/index.theme r, /usr/share/icons/*/index.theme r, /usr/share/icons/*/cursors/* r, # file_inherit owner @{HOME}/.xsession-errors w, include if exists }