refactor(profiles): use @{bin} and @{lib} in profiles (4)

This commit is contained in:
Alexandre Pujol 2023-07-09 14:23:22 +01:00
parent 27daa7c9bb
commit 43b0f09b65
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
173 changed files with 909 additions and 916 deletions

View file

@ -6,7 +6,7 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/evince @{libexec}/evinced
@{exec_path} = @{bin}/evince @{lib}/evinced
profile evince @{exec_path} {
include <abstractions/base>
include <abstractions/dconf-write>
@ -81,10 +81,10 @@ profile evince @{exec_path} {
@{exec_path} rix,
/{usr/,}bin/{,ba,da}sh rix,
/{usr/,}bin/gio-launch-desktop rPx,
/{usr/,}lib/@{multiarch}/glib-[0-9]*/gio-launch-desktop rPx -> child-open,
/{usr/,}lib/gio-launch-desktop rPx -> child-open,
@{bin}/{,ba,da}sh rix,
@{bin}/gio-launch-desktop rPx,
@{lib}/@{multiarch}/glib-[0-9]*/gio-launch-desktop rPx -> child-open,
@{lib}/gio-launch-desktop rPx -> child-open,
/usr/share/djvu/{,**} r,
/usr/share/evince/{,**} r,
@ -107,7 +107,7 @@ profile evince @{exec_path} {
/dev/tty rw,
deny /{usr/,}lib/ r, # asks when viewing PostScript files
deny @{lib}/ r, # asks when viewing PostScript files
include if exists <local/evince>
}