mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
xrt: Fix typo in u_file
This commit is contained in:
parent
a6da40de50
commit
0adcc179c0
|
@ -54,10 +54,10 @@ mkpath(const char *path)
|
|||
ssize_t
|
||||
u_file_get_config_dir(char *out_path, size_t out_path_size)
|
||||
{
|
||||
const char *xgd_home = getenv("XDG_CONFIG_HOME");
|
||||
const char *xdg_home = getenv("XDG_CONFIG_HOME");
|
||||
const char *home = getenv("HOME");
|
||||
if (xgd_home != NULL) {
|
||||
return snprintf(out_path, out_path_size, "%s/monado", xgd_home);
|
||||
if (xdg_home != NULL) {
|
||||
return snprintf(out_path, out_path_size, "%s/monado", xdg_home);
|
||||
}
|
||||
if (home != NULL) {
|
||||
return snprintf(out_path, out_path_size, "%s/.config/monado", home);
|
||||
|
|
Loading…
Reference in a new issue