Simplify default path creation

merge-requests/2/head
soft as HELL 5 years ago
parent 1c19f418c6
commit 52cad2114d
No known key found for this signature in database
GPG Key ID: F12286FEB8B8C504

@ -416,8 +416,7 @@ std::string Local_Storage::get_user_appdata_path()
} else { } else {
char *homedir = getenv("HOME"); char *homedir = getenv("HOME");
if (homedir) { if (homedir) {
user_appdata_path = homedir; user_appdata_path = std::string(homedir) + "/.local/share";
user_appdata_path.append(PATH_SEPARATOR).append(".local").append(PATH_SEPARATOR).append("share");
} }
} }
#endif #endif

Loading…
Cancel
Save