glib: add support for Pantheon’s terminal emulator

Just like we did for GNOME’s in the parent commit.
This commit is contained in:
Jan Tojnar 2022-03-28 13:57:42 +02:00
parent c987121acf
commit ca0b2cdd67
2 changed files with 18 additions and 0 deletions

View File

@ -72,6 +72,8 @@ stdenv.mkDerivation rec {
# Add support for the GNOMEs default terminal emulator.
# https://gitlab.gnome.org/GNOME/glib/-/issues/2618
./gnome-console-support.patch
# Do the same for Pantheons terminal emulator.
./elementary-terminal-support.patch
# GLib contains many binaries used for different purposes;
# we will install them to different outputs:

View File

@ -0,0 +1,16 @@
diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c
index a441bfec9..6bcd3e690 100644
--- a/gio/gdesktopappinfo.c
+++ b/gio/gdesktopappinfo.c
@@ -2678,6 +2678,11 @@ prepend_terminal_to_vector (int *argc,
if (check != NULL)
pass_cmd_as_single_arg = TRUE;
}
+ if (check == NULL) {
+ check = g_find_program_in_path ("io.elementary.terminal");
+ if (check != NULL)
+ pass_cmd_as_single_arg = TRUE;
+ }
if (check == NULL)
check = g_find_program_in_path ("tilix");
if (check == NULL)