mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fallback to other working directories in debug mode on Unix systems
Just like on Windows
This commit is contained in:
parent
dbe84d732c
commit
8099c28197
1 changed files with 4 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue