1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-23 11:13:00 +01:00

Fix macos start of wallpaper on release for now. This will not work in the steam version because the apps in the steam version are in the same folder

This commit is contained in:
Elias Steurer 2020-04-25 11:09:03 +02:00
parent 0575c30c25
commit ee133b8197

View File

@ -179,6 +179,7 @@ void Settings::setupWidgetAndWindowPaths()
baseDir.cd("ScreenPlay");
#endif
#ifdef QT_NO_DEBUG
#ifdef Q_OS_WIN
qDebug() << "Starting in Release mode!";
// If we build in the release version we must be cautious!
@ -202,6 +203,12 @@ void Settings::setupWidgetAndWindowPaths()
m_globalVariables->setWallpaperExecutablePath(QUrl("ScreenPlayWallpaper.exe"));
m_globalVariables->setWidgetExecutablePath(QUrl("ScreenPlayWidget.exe"));
}
#endif
//#ifdef Q_OS_OSX
// m_globalVariables->setWidgetExecutablePath(QUrl::fromUserInput(workingDir.path() + "/../../../../ScreenPlayWidget/ScreenPlayWidget.app/Contents/MacOS/ScreenPlayWidget").toLocalFile());
// m_globalVariables->setWallpaperExecutablePath(QUrl::fromUserInput(workingDir.path() + "/../../../../ScreenPlayWallpaper/ScreenPlayWallpaper.app/Contents/MacOS/ScreenPlayWallpaper").toLocalFile());
//#endif
#endif
}