]> git.decadent.org.uk Git - ion3.git/blob - debian/patches/205_ion-lock.diff
70de7237ba17b9be16c71421cd84058d013526f5
[ion3.git] / debian / patches / 205_ion-lock.diff
1 --- ion3.orig/etc/cfg_ioncore.lua
2 +++ ion3/etc/cfg_ioncore.lua
3 @@ -330,7 +330,8 @@
4  defmenu("mainmenu", {
5      menuentry("Run...",         "mod_query.query_exec(_)"),
6      menuentry("Terminal",       "ioncore.exec_on(_, XTERM or 'xterm')"),
7 -    menuentry("Lock screen",    "ioncore.exec_on(_, 'xlock')"),
8 +    menuentry("Lock screen",
9 +              "ioncore.exec_on(_, ioncore.lookup_script('ion-lock'))"),
10      menuentry("Help",           "mod_query.query_man(_)"),
11      menuentry("About Ion",      "mod_query.show_about_ion(_)"),
12      submenu("Styles",           "stylemenu"),
13 --- ion3.orig/utils/Makefile
14 +++ ion3/utils/Makefile
15 @@ -11,7 +11,7 @@
16  SUBDIRS=ion-completefile ion-statusd
17  INSTALL_SUBDIRS=$(SUBDIRS)
18  
19 -SHELLSCRIPTS = ion-runinxterm ion-completeman
20 +SHELLSCRIPTS = ion-runinxterm ion-completeman ion-lock
21  
22  TARGETS = ion-completeman
23  
24 --- /dev/null
25 +++ ion3/utils/ion-lock
26 @@ -0,0 +1,6 @@
27 +#!/bin/sh
28 +if xscreensaver-command -version >/dev/null 2>&1; then
29 +       exec xscreensaver-command -lock
30 +else
31 +       exec xlock
32 +fi