godot/modules
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
..
bullet doc: Make all module docs self-contained 2017-11-15 21:29:33 +01:00
dds doc: Make all module docs self-contained 2017-11-15 21:29:33 +01:00
enet Rename OS::get_data_dir to OS::get_user_data_dir 2017-11-17 20:55:09 +01:00
etc doc: Make all module docs self-contained 2017-11-15 21:29:33 +01:00
freetype doc: Make all module docs self-contained 2017-11-15 21:29:33 +01:00
gdnative Rename Rect3 to AABB. 2017-11-17 11:01:41 -05:00
gdscript Merge pull request #12930 from vnen/gdscrit-output-print 2017-11-17 16:05:44 -03:00
gridmap Rename Rect3 to AABB. 2017-11-17 11:01:41 -05:00
hdr doc: Make all module docs self-contained 2017-11-15 21:29:33 +01:00
jpg doc: Make all module docs self-contained 2017-11-15 21:29:33 +01:00
mobile_vr doc: Make all module docs self-contained 2017-11-15 21:29:33 +01:00
mono Add initial support for the XDG Base Directory spec 2017-11-19 20:54:24 +01:00
ogg doc: Make all module docs self-contained 2017-11-15 21:29:33 +01:00
openssl doc: Make all module docs self-contained 2017-11-15 21:29:33 +01:00
opus doc: Make all module docs self-contained 2017-11-15 21:29:33 +01:00
pbm doc: Make all module docs self-contained 2017-11-15 21:29:33 +01:00
pvr doc: Make all module docs self-contained 2017-11-15 21:29:33 +01:00
recast doc: Make all module docs self-contained 2017-11-15 21:29:33 +01:00
regex doc: Make all module docs self-contained 2017-11-15 21:29:33 +01:00
squish doc: Make all module docs self-contained 2017-11-15 21:29:33 +01:00
stb_vorbis doc: Make all module docs self-contained 2017-11-15 21:29:33 +01:00
svg doc: Make all module docs self-contained 2017-11-15 21:29:33 +01:00
tga doc: Make all module docs self-contained 2017-11-15 21:29:33 +01:00
theora doc: Sync classref with current source 2017-11-15 21:29:34 +01:00
tinyexr doc: Make all module docs self-contained 2017-11-15 21:29:33 +01:00
visual_script Merge pull request #12930 from vnen/gdscrit-output-print 2017-11-17 16:05:44 -03:00
vorbis doc: Make all module docs self-contained 2017-11-15 21:29:33 +01:00
webm doc: Sync classref with current source 2017-11-15 21:29:34 +01:00
webp doc: Make all module docs self-contained 2017-11-15 21:29:33 +01:00
register_module_types.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
SCsub Improve code style of generated headers 2017-11-15 21:29:34 +01:00