[gnome-shell/wip/rstrode/login-screen-extensions: 84/134] 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/login-screen-extensions: 84/134] main: Show a warning when gdm is missing
- Date: Thu, 26 Aug 2021 19:31:01 +0000 (UTC)
commit eea29546ab0e46dac00fad583f2533130ae56bd9
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 52bd44c56f..f472f736f4 100644
--- a/js/ui/main.js
+++ b/js/ui/main.js
@@ -241,6 +241,13 @@ function _initializeUI() {
_('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.'));
+ }
+
let perfModuleName = GLib.getenv("SHELL_PERF_MODULE");
if (perfModuleName) {
let perfOutput = GLib.getenv("SHELL_PERF_OUTPUT");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]