2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Fix logging initial working directory when TelegramForcePortable exists

This commit is contained in:
Ilya Fedin
2023-08-14 09:26:39 +04:00
committed by John Preston
parent c5424d0a9a
commit cc19928977
3 changed files with 10 additions and 4 deletions

View File

@@ -351,7 +351,6 @@ void start() {
return;
}
auto initialWorkingDir = QDir(cWorkingDir()).absolutePath() + '/';
auto moveOldDataFrom = QString();
auto workingDirChosen = false;
@@ -373,7 +372,7 @@ void start() {
}
#if !defined Q_OS_MAC && !defined _DEBUG // fix first version
moveOldDataFrom = initialWorkingDir;
moveOldDataFrom = launcher.initialWorkingDir();
#endif // !Q_OS_MAC && !_DEBUG
#elif defined Q_OS_WINRT // Q_OS_UNIX
@@ -432,7 +431,7 @@ void start() {
).arg(cAlphaVersion()
).arg(Logs::b(DebugEnabled())));
LOG(("Executable dir: %1, name: %2").arg(cExeDir(), cExeName()));
LOG(("Initial working dir: %1").arg(initialWorkingDir));
LOG(("Initial working dir: %1").arg(launcher.initialWorkingDir()));
LOG(("Working dir: %1").arg(cWorkingDir()));
LOG(("Command line: %1").arg(launcher.arguments().join(' ')));