summaryrefslogtreecommitdiff
path: root/daemon/gdm-simple-slave.c
diff options
context:
space:
mode:
authorNiall Power <niall.power@sun.com>2009-11-18 17:07:37 -0500
committerRay Strode <rstrode@redhat.com>2009-11-18 17:10:02 -0500
commitb01a179507aa08d65a57109e5418a7c240ff324f (patch)
treec19e6f616b20c01fe92e22b990a2fa3899e72e40 /daemon/gdm-simple-slave.c
parent5076fc7b1b9bceca5badd1c3f101b326762f752b (diff)
downloadgdm-b01a179507aa08d65a57109e5418a7c240ff324f.tar.gz
Allow session scripts to bypass Xsession launcher
It is occasionally useful to launch sessions that aren't run through Xsession. This is good, for starting a bare xterm session for instance. We now allow a session to specify that it shouldn't be run through the Xsession script with the key file entry: X-GDM-BypassXsession=true
Diffstat (limited to 'daemon/gdm-simple-slave.c')
-rw-r--r--daemon/gdm-simple-slave.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/daemon/gdm-simple-slave.c b/daemon/gdm-simple-slave.c
index 8b161bbf..2cbb5684 100644
--- a/daemon/gdm-simple-slave.c
+++ b/daemon/gdm-simple-slave.c
@@ -112,7 +112,11 @@ on_session_started (GdmSession *session,
username = gdm_session_direct_get_username (slave->priv->session);
gdm_slave_run_script (GDM_SLAVE (slave), GDMCONFDIR "/PreSession", username);
- /* FIXME: should we do something here? */
+ /* FIXME: should we do something here?
+ * Note that error return status from PreSession script should
+ * be ignored in the case of a X-GDM-BypassXSession session, which can be checked
+ * by calling: gdm_session_direct_bypasses_xsession (session)
+ */
}
static void