on xenial help sign in
Make slightly less readable - revert 1093 - AP bug to unset env vars actually sets them to empty strings
6ed8935Gerry Boland
src/main.cpp+1−1
@@ -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()));
143
143
144− if (!isMirServer && qEnvironmentVariableIsSet("UNITY_MIR_EMITS_SIGSTOP")) {
144+ if (!isMirServer && !qgetenv("UNITY_MIR_EMITS_SIGSTOP").isEmpty()) {
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);