if (!e)
return -ENXIO;
- j = strjoin(e, suffix);
+ j = path_join(e, suffix);
if (!j)
return -ENOMEM;
e = getenv("XDG_CONFIG_HOME");
if (e)
- j = strjoin(e, suffix);
+ j = path_join(e, suffix);
else {
_cleanup_free_ char *home = NULL;
if (r < 0)
return r;
- j = strjoin(home, "/.config", suffix);
+ j = path_join(home, "/.config", suffix);
}
if (!j)
e = getenv("XDG_DATA_HOME");
if (e)
- j = strjoin(e, suffix);
+ j = path_join(e, suffix);
else {
_cleanup_free_ char *home = NULL;
if (r < 0)
return r;
- j = strjoin(home, "/.local/share", suffix);
+ j = path_join(home, "/.local/share", suffix);
}
if (!j)
return -ENOMEM;