forked from qt-creator/qt-creator
Provide initial implementation for ProcessLauncherImpl
The initial implementation is a copy of QbsProcess with some small adaptations. Start a LauncherProcess in Creator's main function, just after the creation of the application object. Change-Id: I016df3ed664d7914c73f4a35742d5a63d5faaca0 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#include <utils/environment.h>
|
||||
#include <utils/fileutils.h>
|
||||
#include <utils/hostosinfo.h>
|
||||
#include <utils/launcherinterface.h>
|
||||
#include <utils/optional.h>
|
||||
#include <utils/qtcsettings.h>
|
||||
#include <utils/temporarydirectory.h>
|
||||
@@ -45,6 +46,7 @@
|
||||
#include <QFontDatabase>
|
||||
#include <QFileInfo>
|
||||
#include <QLibraryInfo>
|
||||
#include <QScopeGuard>
|
||||
#include <QStyle>
|
||||
#include <QTextStream>
|
||||
#include <QThreadPool>
|
||||
@@ -548,6 +550,9 @@ int main(int argc, char **argv)
|
||||
QCoreApplication::setOrganizationName(QLatin1String(Core::Constants::IDE_SETTINGSVARIANT_STR));
|
||||
QGuiApplication::setApplicationDisplayName(Core::Constants::IDE_DISPLAY_NAME);
|
||||
|
||||
Utils::LauncherInterface::startLauncher();
|
||||
auto cleanup = qScopeGuard([] { Utils::LauncherInterface::stopLauncher(); });
|
||||
|
||||
const QStringList pluginArguments = app.arguments();
|
||||
|
||||
/*Initialize global settings and resetup install settings with QApplication::applicationDirPath */
|
||||
|
||||
Reference in New Issue
Block a user