summaryrefslogtreecommitdiff
path: root/x11/gnome-panel/files/patch-modules_menu_gp-menu-utils.c
diff options
context:
space:
mode:
authorOlivier Duchateau <duchateau.olivier@gmail.com>2025-06-10 12:12:09 +0200
committerBaptiste Daroussin <bapt@FreeBSD.org>2025-06-10 13:02:34 +0200
commite6d37fcd1dd883a8c7a9d114a57984a369f85ab0 (patch)
tree91b7e83c50e9d4216d54f1b56a74c55eb935a9e8 /x11/gnome-panel/files/patch-modules_menu_gp-menu-utils.c
parentx11-wm/metacity: update to 3.56.0 (diff)
x11/gnome-panel: add new port
This package contains the GNOME Panel of the GNOME Flashback project. It consists of the gnome-panel binary, the libpanel-applet library and several applets. PR: 286697
Diffstat (limited to 'x11/gnome-panel/files/patch-modules_menu_gp-menu-utils.c')
-rw-r--r--x11/gnome-panel/files/patch-modules_menu_gp-menu-utils.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/x11/gnome-panel/files/patch-modules_menu_gp-menu-utils.c b/x11/gnome-panel/files/patch-modules_menu_gp-menu-utils.c
new file mode 100644
index 000000000000..386087dbc464
--- /dev/null
+++ b/x11/gnome-panel/files/patch-modules_menu_gp-menu-utils.c
@@ -0,0 +1,28 @@
+--- modules/menu/gp-menu-utils.c.orig 2024-10-06 18:30:22 UTC
++++ modules/menu/gp-menu-utils.c
+@@ -20,7 +20,9 @@
+ #include <glib/gi18n-lib.h>
+ #include <gtk/gtk.h>
+ #include <libgnome-desktop/gnome-systemd.h>
++#ifdef __linux__
+ #include <systemd/sd-journal.h>
++#endif
+
+ #include "gp-menu-utils.h"
+
+@@ -262,6 +264,7 @@ child_setup (gpointer user_data)
+ static void
+ child_setup (gpointer user_data)
+ {
++#ifdef __linux__
+ GAppInfo *info;
+ const gchar *id;
+ gint stdout_fd;
+@@ -283,6 +286,7 @@ child_setup (gpointer user_data)
+ dup2 (stderr_fd, STDERR_FILENO);
+ close (stderr_fd);
+ }
++#endif
+ }
+
+ static void