diff --git a/data/dbus-interfaces/org.freedesktop.login1.Session.xml b/data/dbus-interfaces/org.freedesktop.login1.Session.xml index 5ebf2edf8..68c7d1162 100644 --- a/data/dbus-interfaces/org.freedesktop.login1.Session.xml +++ b/data/dbus-interfaces/org.freedesktop.login1.Session.xml @@ -5,6 +5,7 @@ + diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index db83f4621..9e1c050f8 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -414,9 +414,10 @@ export const ConflictingSessionDialog = GObject.registerClass({ 'force-stop': {}, }, }, class ConflictingSessionDialog extends ModalDialog.ModalDialog { - _init(conflictingSession, greeterSession, userName) { + _init(conflictingSession, greeterSession) { super._init(); + const userName = conflictingSession.Name; let bannerText; if (greeterSession.Remote && conflictingSession.Remote) /* Translators: is running for */ @@ -1091,8 +1092,7 @@ export const LoginDialog = GObject.registerClass({ _showConflictingSessionDialog(serviceName, conflictingSession) { let conflictingSessionDialog = new ConflictingSessionDialog(conflictingSession, - this._greeterSessionProxy, - this._user.get_user_name()); + this._greeterSessionProxy); conflictingSessionDialog.connect('cancel', () => { this._authPrompt.reset();