void-packages/srcpkgs/gnome-panel/patches/revert-5ce96e7a5608a7a4b96e...

54 lines
1.4 KiB
Diff

index a83e7f0cb..a88337ffd 100644
--- a/modules/menu/gp-menu-utils.c
+++ b/modules/menu/gp-menu-utils.c
@@ -19,7 +19,6 @@
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
-#include <systemd/sd-journal.h>
#include "gp-menu-utils.h"
@@ -253,32 +252,6 @@ get_label_if_file (GFile *file)
return get_file_display_name (file, TRUE);
}
-static void
-child_setup (gpointer user_data)
-{
- GAppInfo *info;
- const gchar *id;
- gint stdout_fd;
- gint stderr_fd;
-
- info = G_APP_INFO (user_data);
- id = g_app_info_get_id (info);
-
- stdout_fd = sd_journal_stream_fd (id, LOG_INFO, FALSE);
- if (stdout_fd >= 0)
- {
- dup2 (stdout_fd, STDOUT_FILENO);
- close (stdout_fd);
- }
-
- stderr_fd = sd_journal_stream_fd (id, LOG_WARNING, FALSE);
- if (stderr_fd >= 0)
- {
- dup2 (stderr_fd, STDERR_FILENO);
- close (stderr_fd);
- }
-}
-
static void
close_pid (GPid pid,
gint status,
@@ -305,7 +278,7 @@ app_info_launch_uris (GDesktopAppInfo *info,
flags = G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD;
ret = g_desktop_app_info_launch_uris_as_manager (info, uris, NULL,
- flags, child_setup, info,
+ flags, NULL, NULL,
pid_cb, NULL,
error);