share tunnable assumes that XDG_DATA_HOME == ~/.local/share
Dear AppArmor gurus,
@{user_share_dirs}
wrongly assumes that XDG_DATA_HOME
== ~/.local/share
.
Maybe the lines bellow should be added to profiles/apparmor.d/tunables/xdg-user-dirs ?
@{XDG_CACHE_DIR}=".cache"
@{XDG_CONFIG_DIR}=".config"
@{XDG_DATA_DIR}=".local/share"
@{XDG_STATE_DIR}=".local/state"
But then how do you ensure those variables are defined and usable in the share
tunable ? I don't know... You tell me :-) (EDIT: they already are because tunables/share
is included after tunables/xdg-user-dirs
in tunables/global
)
My use case is that I have a ~/.dotfiles
folder I symlink many files to, and I was considering doing the following:
@{XDG_CACHE_DIR}+=".dotfiles/@{XDG_CACHE_DIR}"
@{XDG_CONFIG_DIR}+=".dotfiles/@{XDG_CONFIG_DIR}"
@{XDG_DATA_DIR}+=".dotfiles/@{XDG_DATA_DIR}"
@{XDG_STATE_DIR}+=".dotfiles/@{XDG_STATE_DIR}"
Thing is @{user_share_dirs}
is hardcoded and there's nothing I can do about it.
Thanks for reading me !
Edited by ShellCode