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`.
This commit is contained in:
Colomban Wendling 2019-04-25 16:10:49 +02:00
parent aba0b644c2
commit 292cb2cb1b

View File

@ -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;