Skip to content

Conversation

@Damglador
Copy link

@Damglador Damglador commented May 30, 2025

Fixes #884

Also adds directories of fmodengine from AUR package to the cmake file.

Damglador added 2 commits May 30, 2025 17:42
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
@Damglador Damglador marked this pull request as draft May 30, 2025 15:58
@Damglador
Copy link
Author

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

Damglador added 4 commits May 30, 2025 19:50
- 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.
@Damglador Damglador marked this pull request as ready for review May 31, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Linux] Comply with the XDG directory standard

1 participant