feat(profiles): define more xdg variables.
This commit is contained in:
parent
b3a28da5e5
commit
e087349662
35 changed files with 103 additions and 128 deletions
|
|
@ -6,8 +6,6 @@ abi <abi/3.0>,
|
|||
|
||||
include <tunables/global>
|
||||
|
||||
@{MEDIA_LIB} = @{MOUNTS}/mp3/
|
||||
|
||||
@{exec_path} = /{usr/,}bin/strawberry
|
||||
profile strawberry @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
|
@ -46,11 +44,8 @@ profile strawberry @{exec_path} {
|
|||
/{usr/,}bin/xdg-open rCx -> open,
|
||||
|
||||
# Media library
|
||||
/ r,
|
||||
@{MOUNTS}/ r,
|
||||
owner @{MOUNTS}/*/ r,
|
||||
owner @{MEDIA_LIB}/ r,
|
||||
owner @{MEDIA_LIB}/** rw,
|
||||
owner @{user_music_dirs}/ r,
|
||||
owner @{user_music_dirs}/** rw,
|
||||
|
||||
# Playlists
|
||||
owner @{HOME}/**.{m3u,xspf,pls,asx,cue,wpl} rw,
|
||||
|
|
|
|||
|
|
@ -6,8 +6,6 @@ abi <abi/3.0>,
|
|||
|
||||
include <tunables/global>
|
||||
|
||||
@{MEDIA_LIB} = @{MOUNTS}/mp3/
|
||||
|
||||
@{exec_path} = /{usr/,}bin/strawberry-tagreader
|
||||
profile strawberry-tagreader @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
|
@ -21,8 +19,8 @@ profile strawberry-tagreader @{exec_path} {
|
|||
@{exec_path} mr,
|
||||
|
||||
# Media library
|
||||
owner @{MEDIA_LIB}/ r,
|
||||
owner @{MEDIA_LIB}/** rw,
|
||||
owner @{user_music_dirs}/ r,
|
||||
owner @{user_music_dirs}/** rw,
|
||||
|
||||
# file_inherit
|
||||
owner @{HOME}/.xsession-errors w,
|
||||
|
|
|
|||
|
|
@ -6,8 +6,6 @@ abi <abi/3.0>,
|
|||
|
||||
include <tunables/global>
|
||||
|
||||
@{TORRENT_DIR} = /media/*/torrent
|
||||
|
||||
@{exec_path} = /{usr/,}bin/transmission-qt
|
||||
profile transmission-qt @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
|
@ -36,10 +34,8 @@ profile transmission-qt @{exec_path} {
|
|||
@{exec_path} mr,
|
||||
|
||||
# Torrent files
|
||||
/media/ r,
|
||||
owner /media/*/ r,
|
||||
owner @{TORRENT_DIR}/ r,
|
||||
owner @{TORRENT_DIR}/** rw,
|
||||
owner @{user_torrents_dirs}/ r,
|
||||
owner @{user_torrents_dirs}/** rw,
|
||||
|
||||
owner @{HOME}/.config/transmission/ rw,
|
||||
owner @{HOME}/.config/transmission/** rwk,
|
||||
|
|
|
|||
|
|
@ -84,8 +84,7 @@ profile virt-manager @{exec_path} flags=(attach_disconnected) {
|
|||
# User VM images
|
||||
owner @{user_share_dirs}/ r,
|
||||
owner @{user_share_dirs}/libvirt/{,**} rw,
|
||||
owner @{HOME}/@{XDG_VM_DIR}/{,**} rw,
|
||||
owner @{MOUNTS}/@{XDG_VM_DIR}/{,**} rw,
|
||||
owner @{user_vm_dirs}/{,**} rw,
|
||||
|
||||
owner @{run}/user/@{uid}/libvirt/libvirtd.lock rwk,
|
||||
@{run}/mount/utab r,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue