From b3ee4e57d6a55ec90854d37927a5ce9525e2edae Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Sat, 29 May 2021 14:43:09 +0200 Subject: group-desktop: Update weltschmerz patch for dev-libs/glib-2.68.2 --- .../0001-Add-weltschmerz-as-terminal-handler.patch | 42 ---------------------- .../0001-Add-weltschmerz-as-terminal-handler.patch | 42 ++++++++++++++++++++++ 2 files changed, 42 insertions(+), 42 deletions(-) delete mode 100644 group-desktop/patches/dev-libs/glib-2.66.8/0001-Add-weltschmerz-as-terminal-handler.patch create mode 100644 group-desktop/patches/dev-libs/glib-2.68.2/0001-Add-weltschmerz-as-terminal-handler.patch (limited to 'group-desktop/patches') diff --git a/group-desktop/patches/dev-libs/glib-2.66.8/0001-Add-weltschmerz-as-terminal-handler.patch b/group-desktop/patches/dev-libs/glib-2.66.8/0001-Add-weltschmerz-as-terminal-handler.patch deleted file mode 100644 index 61feb66..0000000 --- a/group-desktop/patches/dev-libs/glib-2.66.8/0001-Add-weltschmerz-as-terminal-handler.patch +++ /dev/null @@ -1,42 +0,0 @@ -From 18f1c237aeb02d59775e96d6cc2f17f87f1e1a4f Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Wolfgang=20M=C3=BCller?= -Date: Fri, 28 May 2021 11:08:31 +0200 -Subject: [PATCH] Add weltschmerz as terminal handler - -This commit integrates weltschmerz into glib's AppInfo functionality, -such that it can be launched right out of an application without any -extra script plumbing. ---- - gio/gdesktopappinfo.c | 9 +++++++++ - 1 file changed, 9 insertions(+) - -diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c -index 2b139a01c..cdb53b186 100644 ---- a/gio/gdesktopappinfo.c -+++ b/gio/gdesktopappinfo.c -@@ -2578,6 +2578,14 @@ prepend_terminal_to_vector (int *argc, - term_argc = 2; - term_argv = g_new0 (char *, 3); - -+ check = g_find_program_in_path ("weltschmerz"); -+ if (check != NULL) -+ { -+ term_argv[0] = check; -+ term_argc--; -+ goto done; -+ } -+ - check = g_find_program_in_path ("gnome-terminal"); - if (check != NULL) - { -@@ -2618,6 +2626,7 @@ prepend_terminal_to_vector (int *argc, - } - } - -+done: - real_argc = term_argc + *argc; - real_argv = g_new (char *, real_argc + 1); - --- -2.31.1 - diff --git a/group-desktop/patches/dev-libs/glib-2.68.2/0001-Add-weltschmerz-as-terminal-handler.patch b/group-desktop/patches/dev-libs/glib-2.68.2/0001-Add-weltschmerz-as-terminal-handler.patch new file mode 100644 index 0000000..ea4b303 --- /dev/null +++ b/group-desktop/patches/dev-libs/glib-2.68.2/0001-Add-weltschmerz-as-terminal-handler.patch @@ -0,0 +1,42 @@ +From 3b1ce20d2e69e6cb888444f4b1f22d33e3569dec Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Wolfgang=20M=C3=BCller?= +Date: Sat, 29 May 2021 14:24:04 +0200 +Subject: [PATCH] Add weltschmerz as terminal handler + +This commit integrates weltschmerz into glib's AppInfo functionality, +such that it can be launched right out of an application without any +extra script plumbing. +--- + gio/gdesktopappinfo.c | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c +index 1a4b97918..2ae930a27 100644 +--- a/gio/gdesktopappinfo.c ++++ b/gio/gdesktopappinfo.c +@@ -2578,6 +2578,14 @@ prepend_terminal_to_vector (int *argc, + term_argc = 2; + term_argv = g_new0 (char *, 3); + ++ check = g_find_program_in_path ("weltschmerz"); ++ if (check != NULL) ++ { ++ term_argv[0] = check; ++ term_argc--; ++ goto done; ++ } ++ + check = g_find_program_in_path ("gnome-terminal"); + if (check != NULL) + { +@@ -2622,6 +2630,7 @@ prepend_terminal_to_vector (int *argc, + } + } + ++done: + real_argc = term_argc + *argc; + real_argv = g_new (char *, real_argc + 1); + +-- +2.31.1 + -- cgit v1.2.3-2-gb3c3