From 4208b66baf2b1c403f4388eb4720586ad3406dce Mon Sep 17 00:00:00 2001 From: xiphon Date: Tue, 28 Jul 2020 17:46:52 +0000 Subject: WizardModeSelection: optional 'Portable mode' feature support --- src/main/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/main.cpp') diff --git a/src/main/main.cpp b/src/main/main.cpp index 41b41faa..b0404165 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -78,6 +78,8 @@ #if defined(Q_OS_WIN) #include +#elif defined(Q_OS_MACOS) +#include "qt/macoshelper.h" #endif #ifdef WITH_SCANNER @@ -323,6 +325,10 @@ Verify update binary using 'shasum'-compatible (SHA256 algo) output signed by tw // start listening QTimer::singleShot(0, ipc, SLOT(bind())); +#if defined(Q_OS_MACOS) + QDir::setCurrent(QDir(MacOSHelper::bundlePath() + QDir::separator() + "..").canonicalPath()); +#endif + // screen settings // Mobile is designed on 128dpi qreal ref_dpi = 128; -- cgit v1.2.3