File: 0002-206_use-x-terminal-emulator.patch

package info (click to toggle)
notion 3%2B2017050501-1
  • links: PTS, VCS
  • area: non-free
  • in suites: buster
  • size: 4,892 kB
  • sloc: ansic: 46,866; sh: 2,016; makefile: 553; perl: 270
file content (51 lines) | stat: -rw-r--r-- 1,854 bytes parent folder | download
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
From: Arnout Engelen <arnouten@bzzt.net>
Date: Fri, 30 Oct 2015 18:58:59 -0700
Subject: 206_use-x-terminal-emulator

Use x-terminal-emulator as the default terminal emulator
---
 etc/cfg_notioncore.lua | 9 ++++-----
 utils/ion-runinxterm   | 2 +-
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/etc/cfg_notioncore.lua b/etc/cfg_notioncore.lua
index afe957b..eff0206 100644
--- a/etc/cfg_notioncore.lua
+++ b/etc/cfg_notioncore.lua
@@ -152,11 +152,10 @@ defbindings("WMPlex.toplevel", {
     kpress(META.."F1", "ioncore.exec_on(_, ':man notion')"),
 
     bdoc("Run a terminal emulator."),
-    kpress(ALTMETA.."F2", "mod_query.exec_on_merr(_, XTERM or 'xterm')"),
-
+    kpress(ALTMETA.."F2", "mod_query.exec_on_merr(_, XTERM or 'x-terminal-emulator')"),
+    
     bdoc("Query for command line to execute."),
     kpress(ALTMETA.."F3", "mod_query.query_exec(_)"),
-
     bdoc("Query for Lua code to execute."),
     kpress(META.."F3", "mod_query.query_lua(_)"),
 
@@ -344,8 +343,8 @@ defbindings("WMoveresMode", {
 -- Main menu
 defmenu("mainmenu", {
     menuentry("Run...",         "mod_query.query_exec(_)"),
-    menuentry("Terminal",       "mod_query.exec_on_merr(_, XTERM or 'xterm')"),
-    menuentry("Lock screen",
+    menuentry("Terminal",       "mod_query.exec_on_merr(_, XTERM or 'x-terminal-emulator')"),
+    menuentry("Lock screen",    
         "notioncore.exec_on(_, notioncore.lookup_script('notion-lock'))"),
     menuentry("Help",           "mod_query.query_man(_)"),
     menuentry("About Notion",      "mod_query.show_about_ion(_)"),
diff --git a/utils/ion-runinxterm b/utils/ion-runinxterm
index fc16dac..b0aa3a5 100755
--- a/utils/ion-runinxterm
+++ b/utils/ion-runinxterm
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-test "$XTERMCMD" || XTERMCMD="xterm"
+test "$XTERMCMD" || XTERMCMD="x-terminal-emulator"
 
 title=""
 wait=""