From 292cb2cb1be223ac334d2f14e8d64bc34a2d6ea0 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Thu, 25 Apr 2019 16:10:49 +0200 Subject: [PATCH] gdesktopappinfo: Add support for MATE and Xfce4 terminals Add support for mate-terminal and xfce4-terminal with higher precedence over xterm as it's likely people that have those want to use them. They both use the gnome-terminal `-x` switch instead of xterm's `-e`. --- gio/gdesktopappinfo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c index 238141158..77e385aa5 100644 --- a/gio/gdesktopappinfo.c +++ b/gio/gdesktopappinfo.c @@ -2514,6 +2514,10 @@ prepend_terminal_to_vector (int *argc, term_argv = g_new0 (char *, 3); check = g_find_program_in_path ("gnome-terminal"); + if (check == NULL) + check = g_find_program_in_path ("mate-terminal"); + if (check == NULL) + check = g_find_program_in_path ("xfce4-terminal"); if (check != NULL) { term_argv[0] = check;