glib: add support for Pantheon’s terminal emulator

Just like we did for GNOME’s in the parent commit.

+18
+2
pkgs/development/libraries/glib/default.nix
··· 72 72 # Add support for the GNOME’s default terminal emulator. 73 73 # https://gitlab.gnome.org/GNOME/glib/-/issues/2618 74 74 ./gnome-console-support.patch 75 + # Do the same for Pantheon’s terminal emulator. 76 + ./elementary-terminal-support.patch 75 77 76 78 # GLib contains many binaries used for different purposes; 77 79 # we will install them to different outputs:
+16
pkgs/development/libraries/glib/elementary-terminal-support.patch
··· 1 + diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c 2 + index a441bfec9..6bcd3e690 100644 3 + --- a/gio/gdesktopappinfo.c 4 + +++ b/gio/gdesktopappinfo.c 5 + @@ -2678,6 +2678,11 @@ prepend_terminal_to_vector (int *argc, 6 + if (check != NULL) 7 + pass_cmd_as_single_arg = TRUE; 8 + } 9 + + if (check == NULL) { 10 + + check = g_find_program_in_path ("io.elementary.terminal"); 11 + + if (check != NULL) 12 + + pass_cmd_as_single_arg = TRUE; 13 + + } 14 + if (check == NULL) 15 + check = g_find_program_in_path ("tilix"); 16 + if (check == NULL)