From 7b6af4a89378baaf42ee72788e38b0dd735d6d67 Mon Sep 17 00:00:00 2001 From: capostrophic Date: Thu, 8 Aug 2019 17:06:27 +0300 Subject: [PATCH] Make sure local path includes trailing slash Launcher assumes it does --- components/files/linuxpath.cpp | 2 +- components/files/windowspath.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/files/linuxpath.cpp b/components/files/linuxpath.cpp index 5f34539d5..c3dead296 100644 --- a/components/files/linuxpath.cpp +++ b/components/files/linuxpath.cpp @@ -87,7 +87,7 @@ boost::filesystem::path LinuxPath::getLocalPath() const { if (readlink(path, &binPath[0], binPath.size()) != -1) { - localPath = boost::filesystem::path(binPath).parent_path(); + localPath = boost::filesystem::path(binPath).parent_path() / "/"; break; } } diff --git a/components/files/windowspath.cpp b/components/files/windowspath.cpp index 516f26021..7f15a7efe 100644 --- a/components/files/windowspath.cpp +++ b/components/files/windowspath.cpp @@ -85,7 +85,7 @@ boost::filesystem::path WindowsPath::getLocalPath() const if (GetModuleFileNameW(nullptr, path, MAX_PATH + 1) > 0) { - localPath = boost::filesystem::path(bconv::utf_to_utf(path)).parent_path(); + localPath = boost::filesystem::path(bconv::utf_to_utf(path)).parent_path() / "/"; } // lookup exe path