mac:remove debug outputs
This commit is contained in:
parent
f11de6b915
commit
b8fce85a2d
@ -2275,11 +2275,11 @@ void Options::load(bool lightweight)
|
|||||||
const char* homedir = g_getenv("HOME"); // This returns the current container data dir in ~/Library
|
const char* homedir = g_getenv("HOME"); // This returns the current container data dir in ~/Library
|
||||||
std::string homebuf{homedir};
|
std::string homebuf{homedir};
|
||||||
int homelength = strlen(homebuf.c_str());
|
int homelength = strlen(homebuf.c_str());
|
||||||
homebuf[homelength-44] = '\0'; // Truncate path to just ${HOME}/Library
|
homebuf[homelength-44] = '\0'; // Terminate string after ${HOME}/Library
|
||||||
std::string homeconfig{homebuf};
|
std::string homeconfig{homebuf};
|
||||||
std::strcat(&homeconfig[0], "/Application Support/RawTherapee/config");
|
std::strcat(&homeconfig[0], "/Application Support/RawTherapee/config");
|
||||||
path = homeconfig.c_str();
|
path = homeconfig.c_str();
|
||||||
std::cout<<"config="<<path<<std::endl;
|
delete(homedir);
|
||||||
#else
|
#else
|
||||||
path = g_getenv("RT_SETTINGS");
|
path = g_getenv("RT_SETTINGS");
|
||||||
#endif
|
#endif
|
||||||
@ -2330,7 +2330,6 @@ void Options::load(bool lightweight)
|
|||||||
std::string homecache{homebuf};
|
std::string homecache{homebuf};
|
||||||
std::strcat(&homecache[0], "/Application Support/RawTherapee/cache");
|
std::strcat(&homecache[0], "/Application Support/RawTherapee/cache");
|
||||||
path = homecache.c_str();
|
path = homecache.c_str();
|
||||||
std::cout<<path<<std::endl;
|
|
||||||
#else
|
#else
|
||||||
path = g_getenv("RT_CACHE");
|
path = g_getenv("RT_CACHE");
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user