mirror of
https://git.freebsd.org/ports.git
synced 2025-06-14 17:20:29 -04:00
41 lines
1.5 KiB
C++
41 lines
1.5 KiB
C++
--- Telegram/SourceFiles/logs.cpp.orig 2019-07-07 13:34:35 UTC
|
|
+++ Telegram/SourceFiles/logs.cpp
|
|
@@ -338,7 +338,7 @@ void start(not_null<Core::Launcher*> launcher) {
|
|
if (cAlphaVersion()) {
|
|
workingDirChosen = true;
|
|
|
|
-#if defined Q_OS_MAC || defined Q_OS_LINUX
|
|
+#if defined Q_OS_MAC || defined Q_OS_LINUX || defined Q_OS_FREEBSD
|
|
} else {
|
|
if (!cWorkingDir().isEmpty()) {
|
|
// This value must come from TelegramForcePortable
|
|
@@ -353,16 +353,16 @@ void start(not_null<Core::Launcher*> launcher) {
|
|
}
|
|
workingDirChosen = true;
|
|
|
|
-#if defined Q_OS_LINUX && !defined _DEBUG // fix first version
|
|
+#if (defined Q_OS_LINUX || defined Q_OS_FREEBSD) && !defined _DEBUG // fix first version
|
|
moveOldDataFrom = initialWorkingDir;
|
|
-#endif // Q_OS_LINUX && !_DEBUG
|
|
+#endif // (Q_OS_LINUX || Q_OS_FREEBSD) && !_DEBUG
|
|
|
|
-#elif defined Q_OS_WINRT // Q_OS_MAC || Q_OS_LINUX
|
|
+#elif defined Q_OS_WINRT // Q_OS_MAC || Q_OS_LINUX || Q_OS_FREEBSD
|
|
} else {
|
|
cForceWorkingDir(psAppDataPath());
|
|
workingDirChosen = true;
|
|
|
|
-#elif defined OS_WIN_STORE // Q_OS_MAC || Q_OS_LINUX || Q_OS_WINRT
|
|
+#elif defined OS_WIN_STORE // Q_OS_MAC || Q_OS_LINUX || Q_OS_WINRT || Q_OS_FREEBSD
|
|
#ifdef _DEBUG
|
|
cForceWorkingDir(cExeDir());
|
|
#else // _DEBUG
|
|
@@ -379,7 +379,7 @@ void start(not_null<Core::Launcher*> launcher) {
|
|
workingDirChosen = true;
|
|
}
|
|
|
|
-#endif // Q_OS_MAC || Q_OS_LINUX || Q_OS_WINRT || OS_WIN_STORE
|
|
+#endif // Q_OS_MAC || Q_OS_LINUX || Q_OS_WINRT || OS_WIN_STORE || Q_OS_FREEBSD
|
|
}
|
|
|
|
LogsData = new LogsDataFields();
|