@@ -141,7 +141,7 @@ Load the testability driver");
141 view->setSource(source);
141 view->setSource(source);
142 QObject::connect(view->engine(), SIGNAL(quit()), application, SLOT(quit()));
142 QObject::connect(view->engine(), SIGNAL(quit()), application, SLOT(quit()));
144− if (!isMirServer && !qgetenv("UNITY_MIR_EMITS_SIGSTOP").isEmpty()) {
144+ if (!isMirServer && qEnvironmentVariableIsSet("UNITY_MIR_EMITS_SIGSTOP")) {
145 // Emit SIGSTOP as expected by upstart, under Mir it's qtmir that will raise it.
145 // Emit SIGSTOP as expected by upstart, under Mir it's qtmir that will raise it.
146 // see http://upstart.ubuntu.com/cookbook/#expect-stop
146 // see http://upstart.ubuntu.com/cookbook/#expect-stop
147 raise(SIGSTOP);
147 raise(SIGSTOP);