@@ -69,6 +69,7 @@ ShellApplication::ShellApplication(int & argc, char ** argv, bool isMirServer)
6969 textdomain("unity8");
7070
7171 m_qmlEngine->rootContext()->setContextProperty(QStringLiteral("applicationArguments"), &m_qmlArgs);
72+ m_qmlEngine->rootContext()->setContextProperty("DebuggingController", new DebuggingController(this));
7273
7374 QByteArray pxpguEnv = qgetenv("GRID_UNIT_PX");
7475 bool ok;
@@ -87,22 +88,20 @@ ShellApplication::ShellApplication(int & argc, char ** argv, bool isMirServer)
8788 }
8889 #endif
8990
90− m_qmlEngine->rootContext()->setContextProperty("DebuggingController", new DebuggingController(this));
91−
92−// if (parser.mode().compare("greeter") == 0) {
91+ if (m_qmlArgs.mode().compare("greeter") == 0) {
9392// QSize primaryScreenSize = this->primaryScreen()->size();
9493// m_shellView->setHeight(primaryScreenSize.height());
9594// m_shellView->setWidth(primaryScreenSize.width());
9695// m_shellView->show();
9796// m_shellView->requestActivate();
98−// if (!QProcess::startDetached("initctl emit --no-wait unity8-greeter-started")) {
99−// qDebug() << "Unable to send unity8-greeter-started event to Upstart";
100−// }
97+ if (!QProcess::startDetached("initctl emit --no-wait unity8-greeter-started")) {
98+ qDebug() << "Unable to send unity8-greeter-started event to Upstart";
99+ }
101100// } else if (isMirServer || parser.hasFullscreen()) {
102101// m_shellView->showFullScreen();
103102// } else {
104103// m_shellView->show();
105−// }
104+ }
106105}
107106
108107ShellApplication::~ShellApplication()