godot/drivers
Rémi Verschelde 32c12a92a5 Add initial support for the XDG Base Directory spec
Spec version 0.7 from https://standards.freedesktop.org/basedir-spec/basedir-spec-0.7.html
(latest as of this commit).

Three virtual methods are added to OS for the various XDG paths we will use:
- OS::get_data_path gives XDG_DATA_HOME, or if missing:
  ~/.local/share on X11, ~/Library/Application Support/ on macOS and %APPDATA% on Windows
- OS::get_config_path gives XDG_CONFIG_HOME, or if missing:
  ~/.config on X11, ~/Library/Application Support/ on macOS and %APPDATA% on Windows
- OS::get_cache_path gives XDG_CACHE_HOME, or if missing:
  ~/.cache on X11, ~/Library/Caches on macOS and %APPDATA% on Windows

So for Windows there are no changes, for Linux we follow the full split spec
and for macOS stuff will move from ~/.godot to ~/Library/Application Support/Godot.

Support for system-wide installation of templates on Unix was removed for now,
as it's a bit hackish and I don't think anyone uses it.

user:// will still be OS::get_data_path() + "/godot/app_userdata/$name" by
default, but when using the application/config/use_shared_user_dir option
it will now use XDG_DATA_HOME/$name, e.g. ~/.local/share/MyGame.

For now everything still goes in EditorSettings::get_settings_dir(), but
this will be changed in a later commit to make use of the new splitting
where relevant.

Part of #3513.
2017-11-19 20:54:24 +01:00
..
alsa Corrections to audio buffer size calculations 2017-09-01 11:12:13 -03:00
convex_decomp Fix files header 2017-09-01 21:07:55 +07:00
coreaudio Merged iphone and osx audio drivers into drivers/coreaudio 2017-09-30 02:16:42 -03:00
gl_context Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
gles3 Merge pull request #12982 from tagcup/aabb_rename 2017-11-17 20:04:29 +01:00
png Use BoolVariable for third-party options. 2017-09-25 14:36:30 -04:00
pulseaudio Fixed issues with surround sound on audio server 2017-09-12 15:13:28 -03:00
rtaudio Fix crash when no audio driver is available 2017-09-13 20:54:55 -03:00
unix Add initial support for the XDG Base Directory spec 2017-11-19 20:54:24 +01:00
wasapi Improved WASAPI driver logic when devices are connected or disconnected 2017-10-31 13:07:35 -03:00
windows Fixed issue #12019, which prevented the creation of new folders on Windows platform 2017-10-13 00:34:05 +02:00
xaudio2 Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
zlib style: Fix PEP8 whitespace issues in Python files 2016-11-01 00:35:16 +01:00
register_driver_types.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
register_driver_types.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
SCsub Merged iphone and osx audio drivers into drivers/coreaudio 2017-09-30 02:16:42 -03:00