@@ -69,6 +69,7 @@ ShellApplication::ShellApplication(int & argc, char ** argv, bool isMirServer)
69 textdomain("unity8");
69 textdomain("unity8");
71 m_qmlEngine->rootContext()->setContextProperty(QStringLiteral("applicationArguments"), &m_qmlArgs);
71 m_qmlEngine->rootContext()->setContextProperty(QStringLiteral("applicationArguments"), &m_qmlArgs);
72+ m_qmlEngine->rootContext()->setContextProperty("DebuggingController", new DebuggingController(this));
73 QByteArray pxpguEnv = qgetenv("GRID_UNIT_PX");
74 QByteArray pxpguEnv = qgetenv("GRID_UNIT_PX");
@@ -87,22 +88,20 @@ ShellApplication::ShellApplication(int & argc, char ** argv, bool isMirServer)
90− m_qmlEngine->rootContext()->setContextProperty("DebuggingController", new DebuggingController(this));
92−// if (parser.mode().compare("greeter") == 0) {
91+ if (m_qmlArgs.mode().compare("greeter") == 0) {
93// QSize primaryScreenSize = this->primaryScreen()->size();
92// QSize primaryScreenSize = this->primaryScreen()->size();
94// m_shellView->setHeight(primaryScreenSize.height());
93// m_shellView->setHeight(primaryScreenSize.height());
95// m_shellView->setWidth(primaryScreenSize.width());
94// m_shellView->setWidth(primaryScreenSize.width());
96// m_shellView->show();
95// m_shellView->show();
97// m_shellView->requestActivate();
96// m_shellView->requestActivate();
98−// if (!QProcess::startDetached("initctl emit --no-wait unity8-greeter-started")) {
97+ if (!QProcess::startDetached("initctl emit --no-wait unity8-greeter-started")) {
99−// qDebug() << "Unable to send unity8-greeter-started event to Upstart";
98+ qDebug() << "Unable to send unity8-greeter-started event to Upstart";
101// } else if (isMirServer || parser.hasFullscreen()) {
100// } else if (isMirServer || parser.hasFullscreen()) {
102// m_shellView->showFullScreen();
101// m_shellView->showFullScreen();
103// } else {
102// } else {
104// m_shellView->show();
103// m_shellView->show();
108ShellApplication::~ShellApplication()
107ShellApplication::~ShellApplication()