Skip to content
Snippets Groups Projects
Commit 4856dc68 authored by Alexandre Lision's avatar Alexandre Lision Committed by Guillaume Roguez
Browse files

config: specify different path for OSX


Refs #67163

Change-Id: Icb7940d0176cc01ff1122ade6044e75f740505f5
Signed-off-by: default avatarGuillaume Roguez <guillaume.roguez@savoirfairelinux.com>
parent 9c9bf734
No related branches found
No related tags found
No related merge requests found
...@@ -309,6 +309,10 @@ get_cache_dir() ...@@ -309,6 +309,10 @@ get_cache_dir()
} else { } else {
#ifdef __ANDROID__ #ifdef __ANDROID__
return get_home_dir() + DIR_SEPARATOR_STR + PACKAGE; return get_home_dir() + DIR_SEPARATOR_STR + PACKAGE;
#elif __APPLE__
return get_home_dir() + DIR_SEPARATOR_STR
+ "Library" + DIR_SEPARATOR_STR + "Application Support"
+ DIR_SEPARATOR_STR + PACKAGE;
#else #else
return get_home_dir() + DIR_SEPARATOR_STR + return get_home_dir() + DIR_SEPARATOR_STR +
".cache" + DIR_SEPARATOR_STR + PACKAGE; ".cache" + DIR_SEPARATOR_STR + PACKAGE;
......
...@@ -1920,6 +1920,10 @@ ManagerImpl::retrieveConfigPath() const ...@@ -1920,6 +1920,10 @@ ManagerImpl::retrieveConfigPath() const
{ {
#ifdef __ANDROID__ #ifdef __ANDROID__
std::string configdir = "/data/data/cx.ring"; std::string configdir = "/data/data/cx.ring";
#elif __APPLE__
std::string configdir = fileutils::get_home_dir() + DIR_SEPARATOR_STR
+ "Library" + DIR_SEPARATOR_STR + "Application Support"
+ DIR_SEPARATOR_STR + PACKAGE;
#else #else
std::string configdir = fileutils::get_home_dir() + DIR_SEPARATOR_STR + std::string configdir = fileutils::get_home_dir() + DIR_SEPARATOR_STR +
".config" + DIR_SEPARATOR_STR + PACKAGE; ".config" + DIR_SEPARATOR_STR + PACKAGE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment