They are fundamentally broken due to their dependence on cwd and $PATH,
which may be changed after application startup. Now that Application
stores an absolute argv0, the argument-less versions can provide a more
consistent answer.
Implementations for the functions are still the same, as they behave
correctly when an absolute argv0 is passed in. At some point in the
future I'll remove the old versions completely.
/// Returns the user's home directory
Path get_home_dir();
/// Returns the user's home directory
Path get_home_dir();
-/// Returns a directory suitable for storing user-specific data
+/// Deprecated. Use the argument-less version instead.
Path get_user_data_dir(const std::string &appname);
Path get_user_data_dir(const std::string &appname);
+/// Returns a directory suitable for storing user-specific data.
Path get_user_data_dir();
Path get_user_data_dir();
-/// Returns a directory containing system-wide configuration
+/// Deprecated. Use the argument-less version instead.
Path get_sys_conf_dir(const std::string &argv0);
Path get_sys_conf_dir(const std::string &argv0);
+/// Returns a directory containing system-wide configuration.
-/// Returns a directory containing immutable system-wide data
+/// Deprecated. Use the argument-less version instead.
Path get_sys_data_dir(const std::string &argv0, const std::string &appname);
Path get_sys_data_dir(const std::string &argv0, const std::string &appname);
+/// Returns a directory containing immutable system-wide data.
-/// Returns a directory containing system-wide architecture-specific files
+/// Deprecated. Use the argument-less version instead.
Path get_sys_lib_dir(const std::string &argv0, const std::string &appname);
Path get_sys_lib_dir(const std::string &argv0, const std::string &appname);
+/// Returns a directory containing system-wide architecture-specific files.
Path get_sys_lib_dir();
/// Changes the current working directory
Path get_sys_lib_dir();
/// Changes the current working directory