From: James Cowgill <jcowgill@debian.org>
Date: Mon, 21 Feb 2022 20:37:25 +0100
Subject: Use x-terminal-emulator in preference to xterm

Forwarded: not-needed
---
 LiteEditor/app.cpp     | 4 +++-
 LiteEditor/manager.cpp | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

--- a/LiteEditor/app.cpp
+++ b/LiteEditor/app.cpp
@@ -202,7 +202,9 @@
         char command[256];
         memset(command, 0, sizeof(command));
 
-        if(ExeLocator::Locate(wxT("gnome-terminal"), where)) {
+        if(ExeLocator::Locate(wxT("x-terminal-emulator"), where)) {
+            sprintf(command, "x-terminal-emulator -T 'gdb' -e 'gdb -p %d'", getpid());
+        } else if(ExeLocator::Locate(wxT("gnome-terminal"), where)) {
             sprintf(command, "gnome-terminal -t 'gdb' -e 'gdb -p %d'", getpid());
         } else if(ExeLocator::Locate(wxT("konsole"), where)) {
             sprintf(command, "konsole -T 'gdb' -e 'gdb -p %d'", getpid());
--- a/LiteEditor/manager.cpp
+++ b/LiteEditor/manager.cpp
@@ -1965,7 +1965,7 @@
     wxString terminal;
     wxArrayString tokens;
     wxArrayString configuredTerminal;
-    terminal = wxT("xterm");
+    terminal = wxT("x-terminal-emulator");
     if(!EditorConfigST::Get()->GetOptions()->GetProgramConsoleCommand().IsEmpty()) {
         tokens =
             wxStringTokenize(EditorConfigST::Get()->GetOptions()->GetProgramConsoleCommand(), wxT(" "), wxTOKEN_STRTOK);
