@@ -42,7 +42,7 @@ int startShell(int argc, const char** argv, void* server)
43 const bool isUbuntuMirServer = qgetenv("QT_QPA_PLATFORM") == "ubuntumirserver";
43 const bool isUbuntuMirServer = qgetenv("QT_QPA_PLATFORM") == "ubuntumirserver";
45− QGuiApplication::setApplicationName(APP_NAME);
45+ QGuiApplication::setApplicationName(UNITY8_SHELL ? "Unity 8" : "Unity 8 Greeter");
46 QGuiApplication *application;
46 QGuiApplication *application;
47 if (isUbuntuMirServer) {
47 if (isUbuntuMirServer) {
48 QLibrary unityMir("unity-mir", 1);
48 QLibrary unityMir("unity-mir", 1);
@@ -113,7 +113,7 @@ int startShell(int argc, const char** argv, void* server)
113 nativeInterface->setProperty("ubuntuSessionType", 1);
113 nativeInterface->setProperty("ubuntuSessionType", 1);
114 view->setProperty("role", 2); // INDICATOR_ACTOR_ROLE
114 view->setProperty("role", 2); // INDICATOR_ACTOR_ROLE
116− QUrl source(::qmlDirectory()+QML_FILE);
116+ QUrl source(::qmlDirectory() + (UNITY8_SHELL ? "Shell.qml" : "GreeterShell.qml"));
117 prependImportPaths(view->engine(), ::overrideImportPaths());
117 prependImportPaths(view->engine(), ::overrideImportPaths());
118 appendImportPaths(view->engine(), ::fallbackImportPaths());
118 appendImportPaths(view->engine(), ::fallbackImportPaths());
@@ -121,17 +121,18 @@ int startShell(int argc, const char** argv, void* server)
121 QStringList importPaths = view->engine()->importPathList();
121 QStringList importPaths = view->engine()->importPathList();
122 importPaths.replaceInStrings(QRegExp("qt5/imports$"), "qt5/imports/Unity-Mir");
122 importPaths.replaceInStrings(QRegExp("qt5/imports$"), "qt5/imports/Unity-Mir");
123 view->engine()->setImportPathList(importPaths);
123 view->engine()->setImportPathList(importPaths);
126+ // Make background transparent, so that the greeter can bleed through.
127+ QSurfaceFormat format;
128+ format.setAlphaBufferSize(8);
129+ view->setFormat(format);
130+ view->setColor(Qt::transparent);
126 view->setSource(source);
134 view->setSource(source);
128− // Make background transparent, so that the greeter can bleed through.
129− // In normal shell, the background is never seen.
130− QSurfaceFormat format;
131− format.setAlphaBufferSize(8);
132− view->setFormat(format);
133− view->setColor(Qt::transparent);
135 if (qgetenv("QT_QPA_PLATFORM") == "ubuntu" || isUbuntuMirServer || args.contains(QLatin1String("-fullscreen"))) {
136 if (qgetenv("QT_QPA_PLATFORM") == "ubuntu" || isUbuntuMirServer || args.contains(QLatin1String("-fullscreen"))) {
136 // First, size window equal to screen (fake a real WM fullscreen mode).
137 // First, size window equal to screen (fake a real WM fullscreen mode).
137 // Then, in case we are actually running inside a windowing system,
138 // Then, in case we are actually running inside a windowing system,