Merge pull request #1341 from aliva/fix-data-path

force telegram respect my workdir settings
This commit is contained in:
telegramdesktop 2015-12-09 22:21:37 +03:00
commit 8f35281e0a
1 changed files with 3 additions and 1 deletions

View File

@ -223,7 +223,9 @@ void logsInit() {
#ifdef _DEBUG
cForceWorkingDir(cExeDir());
#else
cForceWorkingDir(psAppDataPath());
if(cWorkingDir().isEmpty()){
cForceWorkingDir(psAppDataPath());
}
#endif
#if (defined Q_OS_LINUX && !defined _DEBUG) // fix first version