main: emit systemd message for any session except gdm and initial-setup
This commit is contained in:
parent
3e7d325e77
commit
5ade2e7418
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user