Pathmanager standards compliance / new paths

Everything about development and the OpenMW source code.
Post Reply
User avatar
scrawl
Posts: 2152
Joined: 18 Feb 2012, 11:51

Pathmanager standards compliance / new paths

Post by scrawl »

Currently it saves everything in config path (.config/openmw) which is against the XDG standards. Also, it's inconvenient to have the screenshots in the same folder as the config files and logs.
My suggestion is:
Linux:
- config files, logs: .config/openmw
- screenshots: .local/share/openmw
Windows: create subfolders (config, screenshots) in the openmw appdata folder.

Bonus task: A cache folder would be good to have (a place to save temporary data, so that it doesn't have to be rendered / calculated on the next run)
Examples:
- map generation (although a GUI to delete those would be handy, since they'll be outdated when the user installs new mods)
- conversions of binary data in the bsa files (e.g. like the rotated cursors in my latest pull request)

On linux, that would be .cache/openmw, on windows, again creating subfolder in openmw appdata.

[1] XDG base directory spec http://standards.freedesktop.org/basedi ... atest.html
User avatar
psi29a
Posts: 5361
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: Pathmanager standards compliance / new paths

Post by psi29a »

Isn't it illogical that log files to into a .config dir? Shouldn't only config files go there?
User avatar
scrawl
Posts: 2152
Joined: 18 Feb 2012, 11:51

Re: Pathmanager standards compliance / new paths

Post by scrawl »

Not sure. .local/share might be more appropriate. (Along with a subdirectory "logs" and "screenshots")
User avatar
psi29a
Posts: 5361
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: Pathmanager standards compliance / new paths

Post by psi29a »

scrawl wrote:Not sure. .local/share might be more appropriate. (Along with a subdirectory "logs" and "screenshots")
I'm OK with that.
corristo
Posts: 495
Joined: 12 Aug 2011, 08:29

Re: Pathmanager standards compliance / new paths

Post by corristo »

scrawl wrote:on windows, again creating subfolder in openmw appdata.
I think better place for temporary files on windows is somewhere in %USERPROFILE%/AppData/Local/Temp/OpenMW, not in AppData/OpenMW (where configs would be). I hope windows gurus will correct me.

Regarding OS X:
configs into ~/Library/Preferences/OpenMW (like now)
temp data into ~/Library/Caches/OpenMW
logs into ~/Library/Logs/OpenMW
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: Pathmanager standards compliance / new paths

Post by Zini »

Not this discussion again :( We had that before and it wasted a lot of time. We ended up with deciding that the current solution is reasonable enough (for now).
Post Reply