glib: add support for Pantheon’s terminal emulator
Just like we did for GNOME’s in the parent commit.
This commit is contained in:
parent
c987121acf
commit
ca0b2cdd67
@ -72,6 +72,8 @@ stdenv.mkDerivation rec {
|
||||
# Add support for the GNOME’s default terminal emulator.
|
||||
# https://gitlab.gnome.org/GNOME/glib/-/issues/2618
|
||||
./gnome-console-support.patch
|
||||
# Do the same for Pantheon’s terminal emulator.
|
||||
./elementary-terminal-support.patch
|
||||
|
||||
# GLib contains many binaries used for different purposes;
|
||||
# we will install them to different outputs:
|
||||
|
@ -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)
|
Loading…
Reference in New Issue
Block a user