New config & data defaults + migration impl

Melroy van den Berg requested to merge change_config_folder into main
  • Generic config (config.ini) is moved to $XDG_CONFIG_HOME/winegui, instead of ~/.winegui
  • Default data directory, containing Bottle prefixes and Winetricks binary, is moved to $XDG_DATA_HOME/winegui (prefixes are still stored inside a sub folder: $XDG_DATA_HOME/winegui/prefixes). Used to be also: ~/.winegui and ~/.winegui/prefixes.
  • Migration code created, for moving the config.ini file
  • New defaults are in place, new user start using WineGUI for the first time (but fallback for the users who still have ~/.winegui/prefix folder with content, but missing config.ini file)

Known limitation: User should NOT try to roll-back to an older version. Which causes to create a config file in the old location (~/.winegui) and possibility new config settings. Which will then not be migrated again when upgrading (since it will not move and replace existing config files, for safety reasons).

Fixes: https://github.com/winegui/WineGUI/issues/13

Edited by Melroy van den Berg

Merge request reports