[glib: 1/2] gdesktopappinfo: Add support for MATE and Xfce4 terminals
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] gdesktopappinfo: Add support for MATE and Xfce4 terminals
- Date: Fri, 26 Apr 2019 11:27:38 +0000 (UTC)
commit 292cb2cb1be223ac334d2f14e8d64bc34a2d6ea0
Author: Colomban Wendling <cwendling hypra fr>
Date: Thu Apr 25 16:10:49 2019 +0200
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]