summaryrefslogtreecommitdiff
path: root/gnome-extra/cinnamon/files/screensaver.patch
blob: 1ffb916b9786c2ff9edfc813a5b4f0fd239f086f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--- a/files/usr/lib/cinnamon-screensaver-lock-dialog/cinnamon-screensaver-lock-dialog.py
+++ b/files/usr/lib/cinnamon-screensaver-lock-dialog/cinnamon-screensaver-lock-dialog.py
@@ -57,9 +57,9 @@ class MainWindow:
     def lock_screen(self, data):
         message = self.entry.get_text()
         if (message != ""):
-            os.system("cinnamon-screensaver-command --lock --away-message \"%s\" &" % self.entry.get_text())
+            os.system("gnome-screensaver-command --lock --away-message \"%s\" &" % self.entry.get_text())
         else:
-            os.system("cinnamon-screensaver-command --lock &")
+            os.system("gnome-screensaver-command --lock &")
         gtk.main_quit()
    
 if __name__ == "__main__":    
--- a/files/usr/lib/cinnamon-settings/modules/cs_screensaver.py
+++ b/files/usr/lib/cinnamon-settings/modules/cs_screensaver.py
@@ -5,15 +5,15 @@ from SettingsWidgets import *
 
 class Module:
     def __init__(self, content_box):
-        keywords = _("screensaver, brightness, lock, password, away, message")
+        keywords = _("screensaver, brightness, lock, password, user, switching")
         advanced = False
         sidePage = SidePage(_("Screensaver & Lock Settings"), "screensaver.svg", keywords, advanced, content_box)
         self.sidePage = sidePage
         self.name = "screensaver"
         self.category = "prefs"
-        if os.path.exists("/usr/bin/cinnamon-screensaver-command"):
-            sidePage.add_widget(GSettingsCheckButton(_("Ask for an away message when locking the screen from the menu"), "org.cinnamon.screensaver", "ask-for-away-message", None))
-            sidePage.add_widget(GSettingsEntry(_("Default away message"), "org.cinnamon.screensaver", "default-message", None))
+        if os.path.exists("/usr/bin/gnome-screensaver-command"):
+            self.sidePage.add_widget(GSettingsCheckButton(_("Ask for password when unlocking"), "org.gnome.desktop.screensaver", "lock-enabled", None))
+            self.sidePage.add_widget(GSettingsCheckButton(_("Enable user switching"), "org.gnome.desktop.screensaver", "user-switch-enabled", None))
 
         widget = content_box.c_manager.get_c_widget("screen")
         if widget is not None: