mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Fallback to other working directories in debug mode on Unix systems
Just like on Windows
This commit is contained in:
@@ -364,14 +364,13 @@ void start(not_null<Core::Launcher*> launcher) {
|
||||
// This value must come from TelegramForcePortable
|
||||
// or from the "-workdir" command line argument.
|
||||
cForceWorkingDir(cWorkingDir());
|
||||
workingDirChosen = true;
|
||||
} else {
|
||||
#if defined _DEBUG && !defined OS_MAC_STORE
|
||||
cForceWorkingDir(cExeDir());
|
||||
#else // _DEBUG
|
||||
#if !defined _DEBUG || defined OS_MAC_STORE
|
||||
cForceWorkingDir(psAppDataPath());
|
||||
#endif // !_DEBUG
|
||||
workingDirChosen = true;
|
||||
#endif // !_DEBUG || OS_MAC_STORE
|
||||
}
|
||||
workingDirChosen = true;
|
||||
|
||||
#if !defined Q_OS_MAC && !defined _DEBUG // fix first version
|
||||
moveOldDataFrom = initialWorkingDir;
|
||||
|
Reference in New Issue
Block a user