feat(profile): rewrite the child-open* profiles.

This commit is contained in:
Alexandre Pujol 2024-05-11 12:12:21 +01:00
parent 60ba9ae965
commit 4d29127d57
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
12 changed files with 28 additions and 43 deletions

View file

@ -13,29 +13,16 @@
# Note: This profile does not specify an attachment path because it is
# intended to be used only via "Px -> child-open" exec transitions
# from other profiles.
# from other profiles.
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/exo-open @{bin}/xdg-open
@{exec_path} += @{lib}/@{multiarch}/glib-[0-9]*/gio-launch-desktop @{lib}/gio-launch-desktop
profile child-open {
include <abstractions/base>
include <abstractions/app-open>
include <abstractions/dri-enumerate>
include <abstractions/mesa>
include <abstractions/vulkan>
include <abstractions/xdg-open>
@{exec_path} mrix,
@{sh_path} rix,
@{bin}/{,m,g}awk rix,
@{bin}/basename rix,
@{bin}/env rix,
@{bin}/readlink rix,
include <abstractions/app/open>
include if exists <usr/child-open.d>
include if exists <local/child-open>

View file

@ -17,11 +17,8 @@ include <tunables/global>
profile child-open-browsers {
include <abstractions/base>
include <abstractions/desktop>
include <abstractions/app/open>
@{open_path} mrix,
@{bin}/chromium rPx,
@{browsers_path} rPx,
include if exists <usr/child-open-browsers.d>

View file

@ -8,13 +8,9 @@ include <tunables/global>
profile child-open-help {
include <abstractions/base>
include <abstractions/desktop>
include <abstractions/app/open>
@{open_path} mrix,
@{bin}/chromium rPx,
@{browsers_path} rPx,
@{bin}/yelp rPUx,
include if exists <usr/child-open-help.d>

View file

@ -13,20 +13,10 @@ include <tunables/global>
profile child-open-strict {
include <abstractions/base>
include <abstractions/desktop>
include <abstractions/app/open>
@{open_path} mrix,
@{sh_path} r,
# Browsers
@{bin}/chromium rPx,
@{browsers_path} rPx,
# Files explorer
@{bin}/nautilus rPx,
@{bin}/dolphin rPx,
/dev/tty rw,
@{file_explorers_path} rPx,
include if exists <usr/child-open-strict.d>
include if exists <local/child-open-strict>