Make slightly less readable - revert 1093 - AP bug to unset env vars actually sets them to empty strings
commit6ed8935bb6998ecd3bedd2ead7685c70795bf093
authorGerry Boland <gerry.boland@canonical.com>
dateThu 31 Jul 2014, 09:57 (12 years ago)
parentb31e023
src/main.cpp+1−1
@@ -141,7 +141,7 @@ Load the testability driver");
141141 view->setSource(source);
142142 QObject::connect(view->engine(), SIGNAL(quit()), application, SLOT(quit()));
143143
144− if (!isMirServer && qEnvironmentVariableIsSet("UNITY_MIR_EMITS_SIGSTOP")) {
144+ if (!isMirServer && !qgetenv("UNITY_MIR_EMITS_SIGSTOP").isEmpty()) {
145145 // Emit SIGSTOP as expected by upstart, under Mir it's qtmir that will raise it.
146146 // see http://upstart.ubuntu.com/cookbook/#expect-stop
147147 raise(SIGSTOP);