pkgsrc-wip/gdm/patches/patch-common_gdm-common_h

53 lines
2.0 KiB
Plaintext

$OpenBSD: patch-common_gdm-common_h,v 1.5 2020/05/14 15:25:54 ajacoutot Exp $
REVERT - OpenBSD does not have a systemd implementation (we need ConsoleKit)
From fcba1e1a5d556ce7b52101dbd2d1ba4a19469161 Mon Sep 17 00:00:00 2001
From: Iain Lane <iain@orangesquash.org.uk>
Date: Fri, 5 Jan 2018 11:53:34 +0000
Subject: [PATCH] manager: Find user's current graphical session, not session of caller
REVERT - OpenBSD does not have a systemd implementation (we need ConsoleKit)
From 9be58c9ec9a3a411492a5182ac4b0d51fdc3a323 Mon Sep 17 00:00:00 2001
From: Ray Strode <rstrode@redhat.com>
Date: Fri, 12 Jun 2015 13:48:52 -0400
Subject: require logind support
Index: common/gdm-common.h
--- common/gdm-common.h.orig 2020-05-04 20:11:25.000000000 +0000
+++ common/gdm-common.h
@@ -37,6 +37,11 @@
#define GDM_SYSTEMD_SESSION_REQUIRE_ONLINE 0
+/* check if logind is running */
+#define LOGIND_RUNNING() (access("/run/systemd/seats/", F_OK) >= 0)
+
+#define GDM_SYSTEMD_SESSION_REQUIRE_ONLINE 0
+
GQuark gdm_common_error_quark (void);
#define GDM_COMMON_ERROR gdm_common_error_quark()
@@ -51,11 +56,6 @@ int gdm_wait_on_and_disown_pi
int gdm_signal_pid (int pid,
int signal);
-gboolean gdm_find_display_session (GPid pid,
- const uid_t uid,
- char **out_session_id,
- GError **error);
-
gboolean gdm_get_pwent_for_name (const char *name,
struct passwd **pwentp);
@@ -83,10 +83,6 @@ char * gdm_shell_expand
GdmExpandVarFunc expand_func,
gpointer user_data);
-gboolean gdm_activate_session_by_id (GDBusConnection *connection,
- const char *seat_id,
- const char *session_id);
-
G_END_DECLS
#endif /* _GDM_COMMON_H */