bloodmasters icon indicating copy to clipboard operation
bloodmasters copied to clipboard

New user-writeable directory structure

Open ForNeVeR opened this issue 1 year ago • 0 comments

Currently, we have several folders in Paths that should be user-writable:

  • DownloadedResourceDir
  • ConfigDirPath
  • LogDirPath
  • ScreenshotsDirPath

Let's move them accordingly.

  • [ ] DownloadedResourceDir: to the persistent app data folder since that's the user content
    • Maybe something like Documents\My Games on Windows?
    • $XDG_DATA_HOME/bloodmasters aka ~/.local/share/bloodmasters on Linux
    • ~/Library/Bloodmasters on macOS
  • [ ] ConfigDirPath
    • %APPDATA%\Bloodmasters on Windows
    • $XDG_CONFIG_HOME/bloodmasters aka ~/.config/bloodmasters on Linux
    • ~/Library/Preferences/bloodmasters on macOS
  • [ ] LogDirPath
    • %TEMP%\Bloodmasters\Logs\ on Windows
    • $XDG_STATE_HOME/bloodmasters aka ~/.local/state on Linux
    • ~/Library/Logs/Bloodmasters on macOS
  • [ ] Make sure there's a reasonable log cleanup policy / size limit
  • [ ] On the server, just log to stdout by default and make the logging system configurable
  • [ ] ScreenshotsDirPath
    • %USERPROFILE%\Pictures\Screenshots on Windows
    • $XDG_PICTURES_DIR/Bloodmasters aka ~/Pictures/Bloodmasters
    • Desktop folder on macOS
  • [ ] Make sure the server dirs are configurable
  • [ ] Document all that

ForNeVeR avatar Aug 03 '23 21:08 ForNeVeR