From 52cad2114de2e3070ddd0fc33f9cf3b143d40031 Mon Sep 17 00:00:00 2001 From: soft as HELL Date: Tue, 16 Apr 2019 07:46:40 +0300 Subject: [PATCH] Simplify default path creation --- dll/local_storage.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dll/local_storage.cpp b/dll/local_storage.cpp index a99af35..319f33e 100644 --- a/dll/local_storage.cpp +++ b/dll/local_storage.cpp @@ -416,8 +416,7 @@ std::string Local_Storage::get_user_appdata_path() } else { char *homedir = getenv("HOME"); if (homedir) { - user_appdata_path = homedir; - user_appdata_path.append(PATH_SEPARATOR).append(".local").append(PATH_SEPARATOR).append("share"); + user_appdata_path = std::string(homedir) + "/.local/share"; } } #endif