godot/modules/mono
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
..
doc_classes doc: Remove revision.module_config from version string 2017-11-15 20:41:16 +01:00
editor Rename Rect3 to AABB. 2017-11-17 11:01:41 -05:00
glue Rename Rect3 to AABB. 2017-11-17 11:01:41 -05:00
mono_gd Rename Rect3 to AABB. 2017-11-17 11:01:41 -05:00
utils Fix 'which' returning file without extension on Windows 2017-10-30 21:09:59 +01:00
config.py doc: Make all module docs self-contained 2017-11-15 21:29:33 +01:00
csharp_script.cpp Rename Rect3 to AABB. 2017-11-17 11:01:41 -05:00
csharp_script.h Mono: support custom script templates. 2017-10-31 15:46:30 +01:00
godotsharp_defs.h Added mono module 2017-10-03 00:01:26 +02:00
godotsharp_dirs.cpp Add initial support for the XDG Base Directory spec 2017-11-19 20:54:24 +01:00
godotsharp_dirs.h Added mono module 2017-10-03 00:01:26 +02:00
mono_gc_handle.cpp Make sure gchandle bindings are released before cleanup 2017-11-01 01:48:47 +01:00
mono_gc_handle.h Added mono module 2017-10-03 00:01:26 +02:00
mono_reg_utils.py Fix build with Python 3 on Windows 2017-10-29 19:27:12 +01:00
register_types.cpp Move singleton management from ProjectSettings to Engine 2017-11-14 15:15:13 +01:00
register_types.h Added mono module 2017-10-03 00:01:26 +02:00
SCsub Added for fallback msbuild.exe. 2017-11-04 21:05:22 -04:00
signal_awaiter_utils.cpp Mono: Fix build with tools=no or target=release 2017-10-18 08:27:18 +02:00
signal_awaiter_utils.h Re-write SignalAwaiter implementation 2017-10-16 03:54:23 +02:00