Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider following XDG base directory specification on Linux #283

Closed
bkoropoff opened this issue Mar 25, 2023 · 5 comments
Closed

Consider following XDG base directory specification on Linux #283

bkoropoff opened this issue Mar 25, 2023 · 5 comments

Comments

@bkoropoff
Copy link
Contributor

bkoropoff commented Mar 25, 2023

Putting everything in ~/.<appname> has been considered bad practice on Linux for a while.

https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

  • Configuration files usually go in ~/.config/
  • Cache files (anything it's safe to delete) usually go in ~/.cache/
  • Data files (e.g. saves) usually go in ~/.local/share/

This keeps the home directory clean, lets backup apps only back up important files, lets the cache directory be cleared to reclaim space, etc.

@kraflab
Copy link
Owner

kraflab commented Mar 26, 2023

My main concern about changing anything like this is if it will cause problems for existing users

@bkoropoff
Copy link
Contributor Author

The code should detect an existing ~/.dsda-doom directory and continue using it for config and save games if it's present. That's how a lot of other Linux apps migrated to the XDG spec.

@facespkz
Copy link
Contributor

I remember submitting a patch for this to PrBoom+, only problem is the logic prioritized the path under home directory rather than the default.

@ndfsa
Copy link

ndfsa commented Sep 1, 2023

If I'm not mistaken, PrBoom+ has already implemented this in coelckers/prboom-plus#470

@kraflab
Copy link
Owner

kraflab commented Jul 20, 2024

38fc904

@kraflab kraflab closed this as completed Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants