From 9be562fa20a69ad2e58699cb7dfc89bd945dc8a8 Mon Sep 17 00:00:00 2001 From: atraczyk <andreastraczyk@gmail.com> Date: Mon, 22 Aug 2016 11:23:17 -0400 Subject: [PATCH] file system: fix paths Change-Id: I1ba26c2c6fadff924ca8bb7f9a5f4cc99c4f5473 --- MSVC/ring-daemon.vcxproj | 2 +- src/fileutils.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MSVC/ring-daemon.vcxproj b/MSVC/ring-daemon.vcxproj index e5498bc8aa..a7e0881116 100644 --- a/MSVC/ring-daemon.vcxproj +++ b/MSVC/ring-daemon.vcxproj @@ -153,7 +153,7 @@ </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseLib|x64'"> <TargetExt>.lib</TargetExt> - <OutDir>$(SolutionDir)$(Platform)\$(Configuration)\bin\</OutDir> + <OutDir>$(ProjectDir)$(Platform)\$(Configuration)\bin\</OutDir> <TargetName>dring</TargetName> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugLib|x64'"> diff --git a/src/fileutils.cpp b/src/fileutils.cpp index 9c2639814b..89ac21191d 100644 --- a/src/fileutils.cpp +++ b/src/fileutils.cpp @@ -382,7 +382,7 @@ get_cache_dir() emitSignal<DRing::ConfigurationSignal::GetAppDataPath>(&paths); if (not paths.empty()) cache_path = paths[0]; - return cache_path + DIR_SEPARATOR_STR + std::string("cache"); + return cache_path + DIR_SEPARATOR_STR + std::string(".cache"); #else const std::string cache_home(XDG_CACHE_HOME); @@ -502,7 +502,7 @@ get_config_dir() emitSignal<DRing::ConfigurationSignal::GetAppDataPath>(&paths); if (not paths.empty()) files_path = paths[0]; - return files_path + DIR_SEPARATOR_STR + std::string(".data"); + return files_path + DIR_SEPARATOR_STR + std::string(".config"); #else std::string configdir = fileutils::get_home_dir() + DIR_SEPARATOR_STR + ".config" + DIR_SEPARATOR_STR + PACKAGE; -- GitLab