[gnome-shell/wip/rstrode/rhel-7.9: 40/86] main: Show a warning when gdm is missing
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/rstrode/rhel-7.9: 40/86] main: Show a warning when gdm is missing
- Date: Fri, 12 Feb 2021 19:04:07 +0000 (UTC)
commit 8d3dd1a02f24c99fdf24b6de9e100392a4f8d472
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jun 8 13:33:58 2013 -0400
main: Show a warning when gdm is missing
If we are not running under gdm, some functionaliy (such as
the lock screen) does not work, and we should inform the
user about this.
https://bugzilla.gnome.org/show_bug.cgi?id=701212
js/ui/main.js | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/js/ui/main.js b/js/ui/main.js
index 00e8db54d0..194bb5c508 100644
--- a/js/ui/main.js
+++ b/js/ui/main.js
@@ -252,6 +252,13 @@ function _initializeUI() {
notify(_('Logged in as a privileged user'),
_('Running a session as a privileged user should be avoided for security reasons. If
possible, you should log in as a normal user.'));
}
+
+ if (sessionMode.currentMode !== 'gdm' &&
+ sessionMode.currentMode !== 'initial-setup' &&
+ screenShield === null) {
+ notify(_('Screen Lock disabled'),
+ _('Screen Locking requires the GNOME display manager.'));
+ }
});
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]