diff options
Diffstat (limited to 'src/runtime_paths.cpp')
-rw-r--r-- | src/runtime_paths.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/runtime_paths.cpp b/src/runtime_paths.cpp index d90ab1c7..86315be8 100644 --- a/src/runtime_paths.cpp +++ b/src/runtime_paths.cpp @@ -138,28 +138,28 @@ FilePath user_config_dir() { if (const char* xdg_config_home = getenv("XDG_CONFIG_HOME")) { - return FilePath(xdg_config_home); + return {xdg_config_home}; } if (const char* home = getenv("HOME")) { return FilePath(home) / ".config"; } - return FilePath(); + return {}; } FilePath user_data_dir() { if (const char* xdg_data_home = getenv("XDG_DATA_HOME")) { - return FilePath(xdg_data_home); + return {xdg_data_home}; } if (const char* home = getenv("HOME")) { return FilePath(home) / ".local/share"; } - return FilePath(); + return {}; } std::vector<FilePath> |