99decf5adf
The GNOME Display Manager is a system service that is responsible for providing graphical log-ins and managing local and remote displays. This package installs libgdm, which is the client part of GDM.
58 lines
2.1 KiB
Text
58 lines
2.1 KiB
Text
$NetBSD: patch-daemon_gdm-session_c,v 1.1 2021/04/16 13:57:52 cirnatdan Exp $
|
|
|
|
$OpenBSD: patch-daemon_gdm-session_c,v 1.22 2020/05/14 15:25:54 ajacoutot Exp $
|
|
|
|
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
|
|
|
|
REVERT - OpenBSD does not have a systemd implementation (we need ConsoleKit)
|
|
From a9cacb929470eb82582396984c61d5b611bfeb1a Mon Sep 17 00:00:00 2001
|
|
From: Ray Strode <rstrode@redhat.com>
|
|
Date: Fri, 12 Jun 2015 14:33:40 -0400
|
|
Subject: session: drop session-type property
|
|
|
|
Index: daemon/gdm-session.c
|
|
--- daemon/gdm-session.c.orig 2020-05-04 20:11:25.000000000 +0000
|
|
+++ daemon/gdm-session.c
|
|
@@ -3238,6 +3238,10 @@ gdm_session_bypasses_xsession (GdmSessio
|
|
g_return_val_if_fail (self != NULL, FALSE);
|
|
g_return_val_if_fail (GDM_IS_SESSION (self), FALSE);
|
|
|
|
+ if (!LOGIND_RUNNING()) {
|
|
+ return GDM_SESSION_DISPLAY_MODE_REUSE_VT;
|
|
+ }
|
|
+
|
|
#ifdef ENABLE_WAYLAND_SUPPORT
|
|
if (gdm_session_is_wayland_session (self)) {
|
|
bypasses_xsession = TRUE;
|
|
@@ -3333,6 +3337,27 @@ gdm_session_select_program (GdmSession *
|
|
}
|
|
|
|
void
|
|
+gdm_session_select_session_type (GdmSession *self,
|
|
+ const char *text)
|
|
+{
|
|
+ GHashTableIter iter;
|
|
+ gpointer key, value;
|
|
+
|
|
+ g_debug ("GdmSession: selecting session type '%s'", text);
|
|
+
|
|
+ g_hash_table_iter_init (&iter, self->conversations);
|
|
+ while (g_hash_table_iter_next (&iter, &key, &value)) {
|
|
+ GdmSessionConversation *conversation;
|
|
+
|
|
+ conversation = (GdmSessionConversation *) value;
|
|
+
|
|
+ gdm_dbus_worker_call_set_session_type (conversation->worker_proxy,
|
|
+ text,
|
|
+ NULL, NULL, NULL);
|
|
+ }
|
|
+}
|
|
+
|
|
+void
|
|
gdm_session_select_session (GdmSession *self,
|
|
const char *text)
|
|
{
|