mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
force telegram respect my workdir settings
Signed-off-by: Ali Vakilzade <ali@vakilzade.ir> (github: aliva)
This commit is contained in:
@@ -223,7 +223,9 @@ void logsInit() {
|
|||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
cForceWorkingDir(cExeDir());
|
cForceWorkingDir(cExeDir());
|
||||||
#else
|
#else
|
||||||
|
if(cWorkingDir().isEmpty()){
|
||||||
cForceWorkingDir(psAppDataPath());
|
cForceWorkingDir(psAppDataPath());
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (defined Q_OS_LINUX && !defined _DEBUG) // fix first version
|
#if (defined Q_OS_LINUX && !defined _DEBUG) // fix first version
|
||||||
|
Reference in New Issue
Block a user