summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2023-02-04 18:35:11 +0000
committerSimon McVittie <smcv@debian.org>2024-01-12 15:46:42 +0000
commit20e9c3bf6cc26847cf5d9bc78551697f50ba8e34 (patch)
treed6417d9f4a97cde83552699a99dd6e83e283aff0
parentd876c2fcdc1c8f2838188faabfbff4b3a810264d (diff)
gdesktopappinfo: Try using x-terminal-emulator for Terminal=true appsarchive/debian/2.79.0+git20240110_g38f5ba3c-1
Debian Policy provides x-terminal-emulator as an interface for launching a preferred terminal, for some definition of "preferred". However, the x-terminal-emulator alternative is a system-wide choice, so in situations where for example a GNOME user and a KDE user share a computer, only one of them can have the terminal that will match their desktop environment's appearance and behaviour conventions as the x-terminal-emulator. As a result, we still try to use a GTK-based terminal as a higher preference than x-terminal-emulator. This is done on the assumption that when apps are launched using GLib interfaces, they are most likely to have been launched from a GTK application or GTK-based desktop environment, and therefore a GTK-based terminal will be the best fit for the desktop environment's conventions and appearance. I've somewhat arbitrarily sorted x-terminal-emulator as less preferred than KDE's Konsole, but more preferred than rxvt and various xterm variants which are not associated with a particular desktop environment. Bug-Debian: https://bugs.debian.org/773915 Forwarded: not-needed, Debian-specific Signed-off-by: Simon McVittie <smcv@debian.org> Gbp-Pq: Topic debian Gbp-Pq: Name gdesktopappinfo-Try-using-x-terminal-emulator-for-Termina.patch
-rw-r--r--gio/gdesktopappinfo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c
index bde0793fd..cc512f3c6 100644
--- a/gio/gdesktopappinfo.c
+++ b/gio/gdesktopappinfo.c
@@ -2699,6 +2699,7 @@ prepend_terminal_to_vector (int *argc,
{ "xfce4-terminal", "-x" },
{ "tilix", "-e" },
{ "konsole", "-e" },
+ { "x-terminal-emulator", "-e" },
{ "nxterm", "-e" },
{ "color-xterm", "-e" },
{ "rxvt", "-e" },