+++ /dev/null
---- ion3.orig/etc/cfg_ioncore.lua
-+++ ion3/etc/cfg_ioncore.lua
-@@ -330,11 +330,13 @@
- -- Main menu
- defmenu("mainmenu", {
- menuentry("Run...", "mod_query.query_exec(_)"),
-- menuentry("Terminal", "ioncore.exec_on(_, XTERM or 'xterm')"),
-+ menuentry("Terminal", "ioncore.exec_on(_, 'x-terminal-emulator')"),
-- menuentry("Lock screen", "ioncore.exec_on(_, 'xlock')"),
-+ menuentry("Lock screen",
-+ "ioncore.exec_on(_, ioncore.lookup_script('ion-lock'))"),
- menuentry("Help", "mod_query.query_man(_)"),
- menuentry("About Ion", "mod_query.show_about_ion(_)"),
- submenu("Styles", "stylemenu"),
-+ submenu("Debian", "Debian"),
- submenu("Session", "sessionmenu"),
- })
-
+++ /dev/null
---- ion3.orig/etc/cfg_ioncore.lua
-+++ ion3/etc/cfg_ioncore.lua
-@@ -153,7 +153,7 @@
- kpress(META.."F1", "ioncore.exec_on(_, ':man ion3')"),
-
- bdoc("Run a terminal emulator."),
-- kpress(ALTMETA.."F2", "ioncore.exec_on(_, XTERM or 'xterm')"),
-+ kpress(ALTMETA.."F2", "ioncore.exec_on(_, XTERM or 'x-terminal-emulator')"),
-
- bdoc("Query for command line to execute."),
- kpress(ALTMETA.."F3", "mod_query.query_exec(_)"),
+--- ion3.orig/etc/cfg_ioncore.lua
++++ ion3/etc/cfg_ioncore.lua
+@@ -331,7 +331,8 @@
+ defmenu("mainmenu", {
+ menuentry("Run...", "mod_query.query_exec(_)"),
+ menuentry("Terminal", "ioncore.exec_on(_, XTERM or 'xterm')"),
+- menuentry("Lock screen", "ioncore.exec_on(_, 'xlock')"),
++ menuentry("Lock screen",
++ "ioncore.exec_on(_, ioncore.lookup_script('ion-lock'))"),
+ menuentry("Help", "mod_query.query_man(_)"),
+ menuentry("About Ion", "mod_query.show_about_ion(_)"),
+ submenu("Styles", "stylemenu"),
--- ion3.orig/utils/Makefile
+++ ion3/utils/Makefile
@@ -11,7 +11,7 @@
--- /dev/null
+--- ion3.orig/etc/cfg_ioncore.lua
++++ ion3/etc/cfg_ioncore.lua
+@@ -153,7 +153,7 @@
+ kpress(META.."F1", "ioncore.exec_on(_, ':man ion3')"),
+
+ bdoc("Run a terminal emulator."),
+- kpress(ALTMETA.."F2", "ioncore.exec_on(_, XTERM or 'xterm')"),
++ kpress(ALTMETA.."F2", "ioncore.exec_on(_, XTERM or 'x-terminal-emulator')"),
+
+ bdoc("Query for command line to execute."),
+ kpress(ALTMETA.."F3", "mod_query.query_exec(_)"),
+@@ -330,7 +330,7 @@
+ -- Main menu
+ defmenu("mainmenu", {
+ menuentry("Run...", "mod_query.query_exec(_)"),
+- menuentry("Terminal", "ioncore.exec_on(_, XTERM or 'xterm')"),
++ menuentry("Terminal", "ioncore.exec_on(_, XTERM or 'x-terminal-emulator')"),
+ menuentry("Lock screen",
+ "ioncore.exec_on(_, ioncore.lookup_script('ion-lock'))"),
+ menuentry("Help", "mod_query.query_man(_)"),
+--- ion3.orig/utils/ion-runinxterm
++++ ion3/utils/ion-runinxterm
+@@ -1,6 +1,6 @@
+ #!/bin/sh
+
+-test "$XTERMCMD" || XTERMCMD="xterm"
++test "$XTERMCMD" || XTERMCMD="x-terminal-emulator"
+
+ title=""
+ wait=""
+++ /dev/null
---- ion3.orig/utils/ion-runinxterm
-+++ ion3/utils/ion-runinxterm
-@@ -1,6 +1,6 @@
- #!/bin/sh
-
--test "$XTERMCMD" || XTERMCMD="xterm"
-+test "$XTERMCMD" || XTERMCMD="x-terminal-emulator"
-
- title=""
- wait=""
--- /dev/null
+--- ion3.orig/etc/cfg_ioncore.lua
++++ ion3/etc/cfg_ioncore.lua
+@@ -336,6 +336,7 @@
+ menuentry("Help", "mod_query.query_man(_)"),
+ menuentry("About Ion", "mod_query.show_about_ion(_)"),
+ submenu("Styles", "stylemenu"),
++ submenu("Debian", "Debian"),
+ submenu("Session", "sessionmenu"),
+ })
+
+@@ -381,3 +381,12 @@
+ defctxmenu("WClientWin", "Client window", {
+ menuentry("Kill", "WClientWin.kill(_)"),
+ })
++
++-- Auto-generated Debian menu definitions
++if os.execute("test -x /usr/bin/update-menus") == 0 then
++ if ioncore.is_i18n() then
++ dopath("debian-menu-i18n")
++ else
++ dopath("debian-menu")
++ end
++end
+++ /dev/null
-
--- Auto-generated Debian menu definitions
-if os.execute("test -x /usr/bin/update-menus") == 0 then
- if ioncore.is_i18n() then
- dopath("debian-menu-i18n")
- else
- dopath("debian-menu")
- end
-end
201_build-config.diff
-202_fix-menus.diff
-204_fix-bindings.diff
205_ion-lock.diff
-206_use-xterm.diff
+206_use-x-terminal-emulator.diff
209_use-etc-default.diff
210_use-cfg_debian_ext.diff
+211_add-debian-menu.diff
install -m644 debian/ion3.menu-method.i18n \
$(INSTDIR)/etc/menu-methods/ion3-i18n
- cat $(CURDIR)/debian/patches/extra/debian-menu.cfg >> $(INSTDIR)/etc/X11/ion3/cfg_ioncore.lua
-
dh_installdebconf -a
# dh_installlogrotate -a
# dh_installemacsen -a