Respect XDG Basedirectories #343
Open
opened 2022-08-15 22:32:17 +00:00 by xeruf
·
3 comments
Labels
Clear labels
abra
awaiting-feedback
backups
bug
build
ci/cd
community organising
contributing
coopcloud.tech
design
documentation
duplicate
enhancement
fedi
fedi-infra
finance
funding
good first issue
help wanted
installer
legal
performance
proposal
question
security
test
wontfix
Everything to do with abra
Ping/pong on comms
Something is not working
Go build related issues
Getting the robots into the mix
Opening this thing up
Contributors stuff
Our main website
Design thinking required
Let's write things together
This issue or pull request already exists
New feature
Democratic decision making
Money things
Anything related to grant funding
Easy start with development
Need some help
Installation related issues
Performance related
Large change which requires feedback & decisin making
More information is needed
Securing our shit
Unit or integration test suite
This won't be fixed
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
BornDeleuze
Brooke
carla
cas (Cassowary)
coopcloud
cyrnel
decentral1se (d1)
dede
devydave
fauno (fauno)
iexos
jade (Jade Ambrose)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
moosemower
moritz
notplants
oxaliq (sorrel)
p4u1
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
renovate-bot (Comrade Renovate Bot)
ripclap
simon
sixsmith (Sixsmith)
stevensting
trav (Trav Fryer)
val (val (he/him))
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: toolshed/organising#343
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
I don't want my home-directory littered, not even with symlinks, please respect XDG like any good Linux citizen: https://wiki.archlinux.org/title/XDG_Base_Directory
https://docs.coopcloud.tech/operators/handbook/#understanding-abra
You could either put everything under
XDG_STATE_HOME/abraor separate theserverssubdirectory intoXDG_DATA_HOMEand potentially some of the other stuff into cache, that way you won't have to tell people to handle subdirectories differently.You can always fall back to an existing
.abradir and/or only respect XDG when the respective variables are set.Respect XDG specto Respect XDG BasedirectoriesI've never even heard of
XDG_STATE_HOMEtbh.I don't think splitting up the recipes/servers/etc. into random "cache" dirs would help hacking workflows... especially since folks are used to the directory layout already...
I would'nt be against accepting a change set for respecting the base dirs if it is backwards compatible (no existing installs have to migrate). Hopefully everything under
~/.abra/...could stay there...(edit: would 👉 wouldn't )
XDG_STATE_HOME has been added in the last revision to fill a gap in the previous directories.
And no, they are not random, my cache dir has plenty of folders which makes backing up and cleaning my device very convenient. Please, I have had discussions about this plenty of times, can't we just respect established standards?
Hu? With backwards compatibility all of this would be no issue.
Workaround for the time being:
export ABRA_DIR=...(only available on latest HEAD)