main: emit systemd message for any session except gdm and initial-setup

This commit is contained in:
Vadim Rutkovsky 2014-05-09 22:31:53 +02:00
parent 3e7d325e77
commit 5ade2e7418

View File

@ -212,7 +212,9 @@ function _initializeUI() {
if (screenShield) { if (screenShield) {
screenShield.lockIfWasLocked(); screenShield.lockIfWasLocked();
} }
if (LoginManager.haveSystemd() && sessionMode.currentMode === 'user') { if (LoginManager.haveSystemd() &&
sessionMode.currentMode != 'gdm' &&
sessionMode.currentMode != 'initial-setup') {
// Do not import globally to not depend // Do not import globally to not depend
// on systemd on non-systemd systems. // on systemd on non-systemd systems.
let GSystem = imports.gi.GSystem; let GSystem = imports.gi.GSystem;