[gdm/wip/systemd-activation: 2/4] wip: session: start X for user on another VT
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/wip/systemd-activation: 2/4] wip: session: start X for user on another VT
- Date: Mon, 28 Apr 2014 21:26:04 +0000 (UTC)
commit d07db1e9f4c494b045b0cb2bb6c1b45a6252f3e5
Author: Ray Strode <rstrode redhat com>
Date: Mon Apr 7 14:01:01 2014 -0400
wip: session: start X for user on another VT
This will need to get hooked up to a config option.
daemon/gdm-session.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c
index f759d2d..0f602c2 100644
--- a/daemon/gdm-session.c
+++ b/daemon/gdm-session.c
@@ -121,6 +121,8 @@ struct _GdmSessionPrivate
GDBusServer *worker_server;
GDBusServer *outside_server;
GHashTable *environment;
+
+ gboolean is_program_session : 1;
};
enum {
@@ -2140,6 +2142,8 @@ gdm_session_setup_for_program (GdmSession *self,
g_return_if_fail (GDM_IS_SESSION (self));
send_setup_for_program (self, service_name, username, log_file);
+
+ self->priv->is_program_session = TRUE;
}
void
@@ -2799,9 +2803,11 @@ gdm_session_get_display_mode (GdmSession *self)
}
#endif
- /* X sessions are for now ran in classic mode where
- * we reuse the existing greeter. */
- return GDM_SESSION_DISPLAY_MODE_REUSE_VT;
+ if (self->priv->is_program_session) {
+ return GDM_SESSION_DISPLAY_MODE_REUSE_VT;
+ }
+
+ return GDM_SESSION_DISPLAY_MODE_NEW_VT;
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]