godot/drivers/unix
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
..
dir_access_unix.cpp Only do 'drive' discovery on X11 2017-09-14 23:04:30 +02:00
dir_access_unix.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
file_access_unix.cpp Extract logging logic 2017-09-25 16:19:21 +07:00
file_access_unix.h Extract logging logic 2017-09-25 16:19:21 +07:00
ip_unix.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
ip_unix.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
mutex_posix.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
mutex_posix.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
os_unix.cpp Add initial support for the XDG Base Directory spec 2017-11-19 20:54:24 +01:00
os_unix.h Add initial support for the XDG Base Directory spec 2017-11-19 20:54:24 +01:00
packet_peer_udp_posix.cpp Fix use of unitialized variables 2017-09-02 01:59:26 +02:00
packet_peer_udp_posix.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
rw_lock_posix.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
rw_lock_posix.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
SCsub Add initial support for the XDG Base Directory spec 2017-11-19 20:54:24 +01:00
semaphore_posix.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
semaphore_posix.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
socket_helpers.h Fix unused variable warnings 2017-09-08 15:03:53 +02:00
stream_peer_tcp_posix.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
stream_peer_tcp_posix.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
syslog_logger.cpp Extract logging logic 2017-09-25 16:19:21 +07:00
syslog_logger.h Extract logging logic 2017-09-25 16:19:21 +07:00
tcp_server_posix.cpp Fix use of unitialized variables 2017-09-02 01:59:26 +02:00
tcp_server_posix.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
thread_posix.cpp Merge pull request #10552 from RandomShaper/improve-posix 2017-08-29 00:07:07 +02:00
thread_posix.h Merge pull request #10552 from RandomShaper/improve-posix 2017-08-29 00:07:07 +02:00