diff options
-rw-r--r-- | group-desktop/patches/dev-libs/glib/add-weltschmerz.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/group-desktop/patches/dev-libs/glib/add-weltschmerz.patch b/group-desktop/patches/dev-libs/glib/add-weltschmerz.patch new file mode 100644 index 0000000..5f7c693 --- /dev/null +++ b/group-desktop/patches/dev-libs/glib/add-weltschmerz.patch @@ -0,0 +1,29 @@ +diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c +index 7d7425ea9..7a31a519e 100644 +--- a/gio/gdesktopappinfo.c ++++ b/gio/gdesktopappinfo.c +@@ -2523,6 +2523,12 @@ prepend_terminal_to_vector (int *argc, + } + else + { ++ int skip_option = 0; ++ if (check == NULL) ++ { ++ check = g_find_program_in_path ("weltschmerz"); ++ skip_option = 1; ++ } + if (check == NULL) + check = g_find_program_in_path ("nxterm"); + if (check == NULL) +@@ -2537,7 +2543,10 @@ prepend_terminal_to_vector (int *argc, + g_debug ("Couldn’t find a terminal: falling back to xterm"); + } + term_argv[0] = check; +- term_argv[1] = g_strdup ("-e"); ++ if (!skip_option) ++ term_argv[1] = g_strdup ("-e"); ++ else ++ term_argc--; + } + + real_argc = term_argc + *argc; |