-
Notifications
You must be signed in to change notification settings - Fork 165
Move data directory to ~/.local/share/barony #886
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
base: master
Are you sure you want to change the base?
Conversation
Technically it is not how XDG dictates it should be, but for most users that will work just fine
These directories are for fmodengine on Arch Linux from the AUR package https://aur.archlinux.org/packages/fmodengine
|
Ideally this should use XDG_DATA_HOME if possible, perhaps also copy old data from ~/.barony if it exists, and XDG_DATA_HOME/barony doesn't. Any feedback will be appreciated |
- Use $XDG_DATA_HOME/barony if the variable is longer than 0 (exists), otherwise fallback to $HOME/.local/share/barony - Made `basepath` a sting that already includes the barony folder in it, because it was getting added to `basepath` everywhere anyway - Replaced `mkdir(outputdir, 0777)` with `std::filesystem::create_directories`, which should check if all directories before target exist and create them if they don't.
|
agree this is a good idea |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Include of header files provided by fmod package from AUR. Can be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks good and I like the idea, I'm probably not qualified to review and unable to run it myself though..
Fixes #884
Also adds directories of fmodengine from AUR package to the cmake file.