depot/third_party/nixpkgs/pkgs/development/libraries/glib/elementary-terminal-support.patch
Default email 22017988c6 Project import generated by Copybara.
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
2022-04-27 11:35:20 +02:00

16 lines
615 B
Diff

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)