feat(tunable): add @{editor_path} & @{pager_path}.

This commit is contained in:
Alexandre Pujol 2024-09-08 13:25:49 +01:00
parent 4f310b8802
commit 2af1d06f18
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
35 changed files with 63 additions and 124 deletions

View file

@ -45,9 +45,7 @@ profile default @{exec_path} flags=(attach_disconnected,mediate_deleted) {
@{coreutils_path} rix, @{coreutils_path} rix,
@{shells_path} rix, @{shells_path} rix,
@{bin}/less rPx -> child-pager, @{pager_path} rPx -> child-pager,
@{bin}/more rPx -> child-pager,
@{bin}/pager rPx -> child-pager,
# @{open_path} rPx -> child-open, # @{open_path} rPx -> child-open,

View file

@ -99,11 +99,10 @@ profile apt @{exec_path} flags=(attach_disconnected) {
/usr/share/language-tools/language-options rPx, /usr/share/language-tools/language-options rPx,
# For editing the sources.list file # For editing the sources.list file
@{bin}/sensible-editor rCx -> editor, @{editor_path} rCx -> editor,
@{bin}/vim.* rCx -> editor,
# For changelogs # For changelogs
@{bin}/sensible-pager rCx -> pager, @{pager_path} rCx -> pager,
#aa:only whonix #aa:only whonix
@{lib}/uwt/uwtwrapper rix, @{lib}/uwt/uwtwrapper rix,
@ -168,8 +167,7 @@ profile apt @{exec_path} flags=(attach_disconnected) {
@{bin}/ r, @{bin}/ r,
@{sh_path} rix, @{sh_path} rix,
@{bin}/less rix, @{pager_path} rmix,
@{bin}/sensible-pager mr,
@{bin}/which{,.debianutils} rix, @{bin}/which{,.debianutils} rix,
/root/ r, # For shell pwd /root/ r, # For shell pwd

View file

@ -28,7 +28,7 @@ profile apt-listchanges @{exec_path} {
# shared object file): ignored. # shared object file): ignored.
@{bin}/dpkg-deb rpx, @{bin}/dpkg-deb rpx,
# #
@{bin}/sensible-pager rCx -> pager, @{pager_path} rCx -> pager,
# Send results using email # Send results using email
@{bin}/exim4 rPx, @{bin}/exim4 rPx,
@ -83,12 +83,11 @@ profile apt-listchanges @{exec_path} {
capability dac_read_search, capability dac_read_search,
#capability sys_tty_config, #capability sys_tty_config,
@{bin}/sensible-pager mr, @{pager_path} mrix,
@{bin}/ r, @{bin}/ r,
@{sh_path} rix, @{sh_path} rix,
@{bin}/which{,.debianutils} rix, @{bin}/which{,.debianutils} rix,
@{bin}/less rix,
owner @{HOME}/.less* rw, owner @{HOME}/.less* rw,
@ -98,6 +97,7 @@ profile apt-listchanges @{exec_path} {
/tmp/ r, /tmp/ r,
owner @{tmp}/apt-listchanges-tmp*.txt r, owner @{tmp}/apt-listchanges-tmp*.txt r,
include if exists <local/apt-listchanges_pager>
} }
include if exists <local/apt-listchanges> include if exists <local/apt-listchanges>

View file

@ -105,7 +105,7 @@ profile aptitude @{exec_path} flags=(complain) {
owner @{user_cache_dirs}/aptitude/ rw, owner @{user_cache_dirs}/aptitude/ rw,
owner @{user_cache_dirs}/aptitude/metadata-download{,-journal} rw, owner @{user_cache_dirs}/aptitude/metadata-download{,-journal} rw,
owner @{user_cache_dirs}/aptitude/metadata-download rwk, owner @{user_cache_dirs}/aptitude/metadata-download rwk,
@{bin}/sensible-pager rCx -> pager, @{pager_path} rCx -> pager,
# For aptitude-run-state-bundle # For aptitude-run-state-bundle
owner @{tmp}/aptitudebug.*/ r, owner @{tmp}/aptitudebug.*/ r,
@ -171,20 +171,19 @@ profile aptitude @{exec_path} flags=(complain) {
include <abstractions/base> include <abstractions/base>
include <abstractions/consoles> include <abstractions/consoles>
@{bin}/ r, @{bin}/ r,
@{bin}/sensible-pager mr, @{editor_path} mrix,
@{sh_path} rix, @{sh_path} rix,
@{bin}/which{,.debianutils} rix, @{bin}/which{,.debianutils} rix,
@{bin}/less rix,
owner @{HOME}/.less* rw, owner @{HOME}/.less* rw,
owner @{tmp}/aptitude-*.@{pid}:*/aptitude-download-* rw, owner @{tmp}/aptitude-*.@{pid}:*/aptitude-download-* rw,
# For shell pwd # For shell pwd
/root/ r, /root/ r,
include if exists <local/aptitude_pager>
} }
include if exists <local/aptitude> include if exists <local/aptitude>

View file

@ -34,10 +34,7 @@ profile dpkg @{exec_path} {
@{lib}/needrestart/dpkg-status rPx, @{lib}/needrestart/dpkg-status rPx,
/usr/share/debian-security-support/check-support-status.hook rPx, /usr/share/debian-security-support/check-support-status.hook rPx,
@{bin}/pager rPx -> child-pager, @{pager_path} rPx -> child-pager,
@{bin}/less rPx -> child-pager,
@{bin}/more rPx -> child-pager,
@{bin}/diff rPx -> child-pager,
# Package maintainer's scripts # Package maintainer's scripts
# Move it to a child profile once more transitions will be available # Move it to a child profile once more transitions will be available

View file

@ -16,9 +16,7 @@ profile dpkg-query @{exec_path} {
@{sh_path} rix, @{sh_path} rix,
@{bin}/pager rPx -> child-pager, @{pager_path} rPx -> child-pager,
@{bin}/less rPx -> child-pager,
@{bin}/more rPx -> child-pager,
/var/lib/dpkg/** r, /var/lib/dpkg/** r,

View file

@ -47,10 +47,8 @@ profile reportbug @{exec_path} {
@{bin}/dlocate rPx, @{bin}/dlocate rPx,
@{bin}/dpkg rPx -> child-dpkg, @{bin}/dpkg rPx -> child-dpkg,
@{bin}/dpkg-query rpx, @{bin}/dpkg-query rpx,
@{bin}/less rPx -> child-pager,
@{bin}/lsb_release rPx -> lsb_release, @{bin}/lsb_release rPx -> lsb_release,
@{bin}/more rPx -> child-pager, @{pager_path} rPx -> child-pager,
@{bin}/pager rPx -> child-pager,
@{bin}/systemctl rCx -> systemctl, @{bin}/systemctl rCx -> systemctl,
@{lib}/firefox/firefox rPUx, # App allowed to open @{lib}/firefox/firefox rPUx, # App allowed to open
/usr/share/bug/* rPUx, /usr/share/bug/* rPUx,

View file

@ -22,11 +22,7 @@ profile crontab @{exec_path} {
@{exec_path} mr, @{exec_path} mr,
@{sh_path} rix, @{sh_path} rix,
@{editor_path} rCx -> editor,
# When editing the crontab file
@{bin}/sensible-editor rCx -> editor,
@{bin}/vim.* rCx -> editor,
@{bin}/nvim rCx -> editor,
/etc/cron.{allow,deny} r, /etc/cron.{allow,deny} r,
/etc/environment r, /etc/environment r,

View file

@ -15,9 +15,7 @@ profile nmcli @{exec_path} {
@{exec_path} mr, @{exec_path} mr,
@{bin}/less rPx -> child-pager, @{pager_path} rPx -> child-pager,
@{bin}/more rPx -> child-pager,
@{bin}/pager rPx -> child-pager,
owner @{HOME}/.nm-vpngate/*.ovpn r, owner @{HOME}/.nm-vpngate/*.ovpn r,
owner @{HOME}/.cert/nm-openvpn/*.pem rw, owner @{HOME}/.cert/nm-openvpn/*.pem rw,

View file

@ -196,10 +196,7 @@ profile pacman @{exec_path} flags=(attach_disconnected) {
signal send set=cont peer=child-pager, signal send set=cont peer=child-pager,
@{bin}/pager rPx -> child-pager, @{pager_path} rPx -> child-pager,
@{bin}/less rPx -> child-pager,
@{bin}/more rPx -> child-pager,
@{bin}/diff rPx -> child-pager,
/etc/machine-id r, /etc/machine-id r,

View file

@ -22,9 +22,7 @@ profile bootctl @{exec_path} {
@{exec_path} mr, @{exec_path} mr,
@{bin}/less rPx -> child-pager, @{pager_path} rPx -> child-pager,
@{bin}/more rPx -> child-pager,
@{bin}/pager rPx -> child-pager,
/{boot,efi}/ r, /{boot,efi}/ r,
/{boot,efi}/EFI/{,**} r, /{boot,efi}/EFI/{,**} r,

View file

@ -37,9 +37,7 @@ profile busctl @{exec_path} {
@{exec_path} mr, @{exec_path} mr,
@{bin}/less rPx -> child-pager, @{pager_path} rPx -> child-pager,
@{bin}/more rPx -> child-pager,
@{bin}/pager rPx -> child-pager,
@{PROC}/@{pid}/cgroup r, @{PROC}/@{pid}/cgroup r,
@{PROC}/@{pid}/comm r, @{PROC}/@{pid}/comm r,

View file

@ -22,9 +22,7 @@ profile coredumpctl @{exec_path} flags=(complain) {
@{bin}/gdb rCx -> gdb, @{bin}/gdb rCx -> gdb,
@{bin}/less rPx -> child-pager, @{pager_path} rPx -> child-pager,
@{bin}/more rPx -> child-pager,
@{bin}/pager rPx -> child-pager,
/var/lib/dbus/machine-id r, /var/lib/dbus/machine-id r,
/etc/machine-id r, /etc/machine-id r,

View file

@ -25,9 +25,7 @@ profile journalctl @{exec_path} flags=(attach_disconnected) {
@{exec_path} mr, @{exec_path} mr,
@{bin}/less rPx -> child-pager, @{pager_path} rPx -> child-pager,
@{bin}/more rPx -> child-pager,
@{bin}/pager rPx -> child-pager,
/var/lib/dbus/machine-id r, /var/lib/dbus/machine-id r,
/etc/machine-id r, /etc/machine-id r,

View file

@ -15,9 +15,7 @@ profile localectl @{exec_path} {
@{exec_path} mr, @{exec_path} mr,
@{bin}/less rPx -> child-pager, @{pager_path} rPx -> child-pager,
@{bin}/more rPx -> child-pager,
@{bin}/pager rPx -> child-pager,
/usr/share/kbd/keymaps/{,**} r, /usr/share/kbd/keymaps/{,**} r,

View file

@ -19,9 +19,7 @@ profile loginctl @{exec_path} {
@{exec_path} mr, @{exec_path} mr,
@{bin}/less rPx -> child-pager, @{pager_path} rPx -> child-pager,
@{bin}/more rPx -> child-pager,
@{bin}/pager rPx -> child-pager,
include if exists <local/loginctl> include if exists <local/loginctl>
} }

View file

@ -35,9 +35,7 @@ profile networkctl @{exec_path} flags=(attach_disconnected) {
@{exec_path} mr, @{exec_path} mr,
@{bin}/less rPx -> child-pager, @{pager_path} rPx -> child-pager,
@{bin}/more rPx -> child-pager,
@{bin}/pager rPx -> child-pager,
/etc/udev/hwdb.bin r, /etc/udev/hwdb.bin r,
/var/lib/dbus/machine-id r, /var/lib/dbus/machine-id r,

View file

@ -28,9 +28,7 @@ profile systemd-analyze @{exec_path} {
@{lib}/systemd/system-environment-generators/* rix, @{lib}/systemd/system-environment-generators/* rix,
@{bin}/pager rPx -> child-pager, @{pager_path} rPx -> child-pager,
@{bin}/less rPx -> child-pager,
@{bin}/more rPx -> child-pager,
@{bin}/man rPx, @{bin}/man rPx,
/usr/ r, /usr/ r,

View file

@ -14,9 +14,7 @@ profile systemd-cgls @{exec_path} {
@{exec_path} mr, @{exec_path} mr,
@{bin}/less rPx -> child-pager, @{pager_path} rPx -> child-pager,
@{bin}/more rPx -> child-pager,
@{bin}/pager rPx -> child-pager,
@{sys}/fs/cgroup/{,**} r, @{sys}/fs/cgroup/{,**} r,

View file

@ -14,9 +14,7 @@ profile systemd-cgtop @{exec_path} {
@{exec_path} mr, @{exec_path} mr,
@{bin}/less rPx -> child-pager, @{pager_path} rPx -> child-pager,
@{bin}/more rPx -> child-pager,
@{bin}/pager rPx -> child-pager,
@{sys}/fs/cgroup/{,**} r, @{sys}/fs/cgroup/{,**} r,

View file

@ -25,9 +25,7 @@ profile systemd-dissect @{exec_path} flags=(attach_disconnected) {
@{exec_path} mr, @{exec_path} mr,
@{bin}/fsck rPx, @{bin}/fsck rPx,
@{bin}/less rPx -> child-pager, @{pager_path} rPx -> child-pager,
@{bin}/more rPx -> child-pager,
@{bin}/pager rPx -> child-pager,
# Location of file system OS images # Location of file system OS images
@{user_build_dirs}/{,**} r, @{user_build_dirs}/{,**} r,

View file

@ -13,9 +13,7 @@ profile systemd-mount @{exec_path} {
@{exec_path} mr, @{exec_path} mr,
@{bin}/less rPx -> child-pager, @{pager_path} rPx -> child-pager,
@{bin}/more rPx -> child-pager,
@{bin}/pager rPx -> child-pager,
@{sys}/bus/ r, @{sys}/bus/ r,
@{sys}/class/ r, @{sys}/class/ r,

View file

@ -37,6 +37,7 @@ profile systemd-udevd @{exec_path} flags=(attach_disconnected,complain) {
@{sh_path} rix, @{sh_path} rix,
@{coreutils_path} rix, @{coreutils_path} rix,
@{pager_path} rPx -> child-pager,
@{bin}/*-print-pci-ids rix, @{bin}/*-print-pci-ids rix,
@{bin}/alsactl rPUx, @{bin}/alsactl rPUx,
@{bin}/ddcutil rPx, @{bin}/ddcutil rPx,
@ -44,16 +45,13 @@ profile systemd-udevd @{exec_path} flags=(attach_disconnected,complain) {
@{bin}/ethtool rix, @{bin}/ethtool rix,
@{bin}/issue-generator rPx, @{bin}/issue-generator rPx,
@{bin}/kmod rPx, @{bin}/kmod rPx,
@{bin}/less rPx -> child-pager,
@{bin}/logger rix, @{bin}/logger rix,
@{bin}/ls rix, @{bin}/ls rix,
@{bin}/lvm rPx, @{bin}/lvm rPx,
@{bin}/mknod rix, @{bin}/mknod rix,
@{bin}/more rPx -> child-pager,
@{bin}/multipath rPx, @{bin}/multipath rPx,
@{bin}/nfsrahead rix, @{bin}/nfsrahead rix,
@{bin}/nvidia-modprobe rPx -> child-modprobe-nvidia, @{bin}/nvidia-modprobe rPx -> child-modprobe-nvidia,
@{bin}/pager rPx -> child-pager,
@{bin}/perl rix, @{bin}/perl rix,
@{bin}/setfacl rix, @{bin}/setfacl rix,
@{bin}/sg_inq rix, @{bin}/sg_inq rix,

View file

@ -16,9 +16,7 @@ profile userdbctl @{exec_path} {
@{exec_path} mr, @{exec_path} mr,
@{bin}/less rPx -> child-pager, @{pager_path} rPx -> child-pager,
@{bin}/more rPx -> child-pager,
@{bin}/pager rPx -> child-pager,
/etc/shadow r, /etc/shadow r,
/etc/gshadow r, /etc/gshadow r,

View file

@ -18,9 +18,7 @@ profile dmesg @{exec_path} {
@{exec_path} mr, @{exec_path} mr,
@{sh_path} rix, @{sh_path} rix,
@{bin}/less rPx -> child-pager, @{pager_path} rPx -> child-pager,
@{bin}/more rPx -> child-pager,
@{bin}/pager rPx -> child-pager,
/usr/share/terminfo/** r, /usr/share/terminfo/** r,

View file

@ -62,9 +62,7 @@ profile git @{exec_path} flags=(attach_disconnected) {
@{bin}/wc rix, @{bin}/wc rix,
@{bin}/whoami rix, @{bin}/whoami rix,
@{bin}/pager rPx -> child-pager, @{pager_path} rPx -> child-pager,
@{bin}/less rPx -> child-pager,
@{bin}/more rPx -> child-pager,
@{bin}/man rPx, @{bin}/man rPx,
@{bin}/meld rPUx, @{bin}/meld rPUx,
@ -74,10 +72,8 @@ profile git @{exec_path} flags=(attach_disconnected) {
@{bin}/gpg{,2} rCx -> gpg, @{bin}/gpg{,2} rCx -> gpg,
@{bin}/ssh rCx -> ssh, @{bin}/ssh rCx -> ssh,
@{bin}/sensible-editor rCx -> editor, @{editor_path} rCx -> editor,
@{bin}/vim rCx -> editor,
@{bin}/vim.* rCx -> editor,
/usr/share/git{,-core}/{,**} r, /usr/share/git{,-core}/{,**} r,
/usr/share/libalternatives/{,**} r, /usr/share/libalternatives/{,**} r,
/usr/share/terminfo/** r, /usr/share/terminfo/** r,

View file

@ -27,9 +27,7 @@ profile gpo @{exec_path} {
@{bin}/ r, @{bin}/ r,
@{sh_path} rix, @{sh_path} rix,
@{bin}/uname rix, @{bin}/uname rix,
@{bin}/pager rPx -> child-pager, @{pager_path} rPx -> child-pager,
@{bin}/less rPx -> child-pager,
@{bin}/more rPx -> child-pager,
/etc/inputrc r, /etc/inputrc r,

View file

@ -37,13 +37,8 @@ profile mutt @{exec_path} {
@{bin}/w3m rCx -> html-renderer, @{bin}/w3m rCx -> html-renderer,
@{bin}/lynx rCx -> html-renderer, @{bin}/lynx rCx -> html-renderer,
@{bin}/vim rCx -> editor, @{editor_path} rCx -> editor,
@{bin}/vim.* rCx -> editor, @{pager_path} rCx -> pager,
@{bin}/sensible-editor rCx -> editor,
@{bin}/less rCx -> pager,
@{bin}/more rCx -> pager,
@{bin}/pager rCx -> pager,
@{bin}/gpg{2,} rCx -> gpg, @{bin}/gpg{2,} rCx -> gpg,
@{bin}/gpgconf rCx -> gpg, @{bin}/gpgconf rCx -> gpg,
@ -118,9 +113,7 @@ profile mutt @{exec_path} {
include <abstractions/base> include <abstractions/base>
include <abstractions/consoles> include <abstractions/consoles>
@{bin}/less mr, @{pager_path} mr,
@{bin}/more mr,
@{bin}/pager mr,
/usr/share/terminfo/** r, /usr/share/terminfo/** r,
/usr/share/file/misc/magic.mgc r, /usr/share/file/misc/magic.mgc r,

View file

@ -46,7 +46,7 @@ profile pass @{exec_path} {
@{bin}/gpg{2,} rCx -> gpg, @{bin}/gpg{2,} rCx -> gpg,
@{bin}/pkill rCx -> pkill, @{bin}/pkill rCx -> pkill,
@{bin}/qdbus rCx -> qdbus, @{bin}/qdbus rCx -> qdbus,
@{bin}/vim{,.*} rCx -> editor, @{editor_path} rCx -> editor,
@{lib}/git{,-core}/git rCx -> git, @{lib}/git{,-core}/git rCx -> git,
@{bin}/wl-{copy,paste} rPx, @{bin}/wl-{copy,paste} rPx,
@{bin}/xclip rPx, @{bin}/xclip rPx,
@ -112,10 +112,7 @@ profile pass @{exec_path} {
@{bin}/git* mrix, @{bin}/git* mrix,
@{lib}/git{,-core}/git* mrix, @{lib}/git{,-core}/git* mrix,
@{bin}/pager rPx -> child-pager, @{pager_path} rPx -> child-pager,
@{bin}/less rPx -> child-pager,
@{bin}/more rPx -> child-pager,
@{bin}/gpg{2,} rPx -> pass//gpg, @{bin}/gpg{2,} rPx -> pass//gpg,
/usr/share/git{,-core}/{,**} r, /usr/share/git{,-core}/{,**} r,

View file

@ -23,10 +23,7 @@ profile task @{exec_path} {
@{exec_path} mr, @{exec_path} mr,
@{sh_path} rix, @{sh_path} rix,
@{editor_path} rCx -> editor,
@{bin}/vim rCx -> editor,
@{bin}/vim.* rCx -> editor,
@{bin}/sensible-editor rCx -> editor,
/usr/share/{doc/,}task{warrior,}/** r, /usr/share/{doc/,}task{warrior,}/** r,

View file

@ -15,9 +15,7 @@ profile udisksctl @{exec_path} {
@{sh_path} rix, @{sh_path} rix,
@{bin}/pager rPx -> child-pager, @{pager_path} rPx -> child-pager,
@{bin}/less rPx -> child-pager,
@{bin}/more rPx -> child-pager,
/dev/tty rw, /dev/tty rw,

View file

@ -16,9 +16,7 @@ profile vipw-vigr @{exec_path} {
@{exec_path} mr, @{exec_path} mr,
@{sh_path} rix, @{sh_path} rix,
@{editor_path} rCx -> editor,
@{bin}/sensible-editor rCx -> editor,
@{bin}/vim.* rCx -> editor,
/etc/login.defs r, /etc/login.defs r,

View file

@ -34,10 +34,16 @@
@{emails_path} = @{thunderbird_path} @{bin}/@{emails_names} @{emails_path} = @{thunderbird_path} @{bin}/@{emails_names}
# Open # Open
@{open_path} = @{bin}/exo-open @{bin}/xdg-open @{bin}/gio @{bin}/kde-open @{open_path} = @{bin}/@{open_names}
@{open_path} += @{bin}/gio-launch-desktop @{lib}/gio-launch-desktop @{open_path} += @{lib}/gio-launch-desktop
@{open_path} += @{lib}/@{multiarch}/glib-@{version}/gio-launch-desktop @{open_path} += @{lib}/@{multiarch}/glib-@{version}/gio-launch-desktop
# Editor
@{editor_path} = @{bin}/@{editor_names}
# Pager
@{pager_path} = @{bin}/@{pager_names}
# File explorers # File explorers
@{file_explorers_path} = @{bin}/@{file_explorers_names} @{file_explorers_path} = @{bin}/@{file_explorers_names}

View file

@ -28,6 +28,15 @@
# Python interpreters # Python interpreters
@{python_name} = python{,3,3.[0-9],3.1[0-9]} @{python_name} = python{,3,3.[0-9],3.1[0-9]}
# Open
@{open_names} = exo-open xdg-open gio kde-open gio-launch-desktop
# Editor
@{editor_names} = sensible-editor vim{,.*} nvim nano
# Pager
@{pager_names} = sensible-pager pager less more
# Browsers # Browsers
@{brave_name} = brave{,-beta,-dev,-bin} @{brave_name} = brave{,-beta,-dev,-bin}

View file

@ -148,9 +148,7 @@ The following desktop environments are supported:
@{bin}/wl-{copy,paste} rPx, @{bin}/wl-{copy,paste} rPx,
@{bin}/xclip rPx, @{bin}/xclip rPx,
@{bin}/python3.@{int} rPx -> pass-import, # pass-import @{bin}/python3.@{int} rPx -> pass-import, # pass-import
@{bin}/pager rPx -> child-pager, @{pager_path} rPx -> child-pager,
@{bin}/less rPx -> child-pager,
@{bin}/more rPx -> child-pager,
'.build/apparmor.d/pass' -> '/etc/apparmor.d/pass' '.build/apparmor.d/pass' -> '/etc/apparmor.d/pass'
``` ```
So, you can install the additional profiles `wl-copy`, `xclip`, `pass-import`, and `child-pager` if desired. So, you can install the additional profiles `wl-copy`, `xclip`, `pass-import`, and `child-pager` if desired.