mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
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:
parent
aba0b644c2
commit
292cb2cb1b
@ -2514,6 +2514,10 @@ prepend_terminal_to_vector (int *argc,
|
|||||||
term_argv = g_new0 (char *, 3);
|
term_argv = g_new0 (char *, 3);
|
||||||
|
|
||||||
check = g_find_program_in_path ("gnome-terminal");
|
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)
|
if (check != NULL)
|
||||||
{
|
{
|
||||||
term_argv[0] = check;
|
term_argv[0] = check;
|
||||||
|
Loading…
Reference in New Issue
Block a user