Back to index

lightdm  1.3.2
Classes | Functions
xsession.c File Reference
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <sys/stat.h>
#include "xsession.h"
#include "configuration.h"
#include "privileges.h"

Go to the source code of this file.


struct  XSessionPrivate


 G_DEFINE_TYPE (XSession, xsession, SESSION_TYPE)
XSessionxsession_new (XServer *xserver)
static void xsession_init (XSession *session)
static void xsession_finalize (GObject *object)
static void xsession_class_init (XSessionClass *klass)

Class Documentation

struct XSessionPrivate

Definition at line 21 of file xsession.c.

Collaboration diagram for XSessionPrivate:
Class Members
XServer * xserver

Function Documentation

G_DEFINE_TYPE ( XSession  ,
xsession  ,
static void xsession_class_init ( XSessionClass klass) [static]

Definition at line 69 of file xsession.c.

    GObjectClass *object_class = G_OBJECT_CLASS (klass);

    object_class->finalize = xsession_finalize;

    g_type_class_add_private (klass, sizeof (XSessionPrivate));

Here is the call graph for this function:

static void xsession_finalize ( GObject *  object) [static]

Definition at line 56 of file xsession.c.

    XSession *self;

    self = XSESSION (object);

    if (self->priv->xserver)
        g_object_unref (self->priv->xserver);

    G_OBJECT_CLASS (xsession_parent_class)->finalize (object);

Here is the caller graph for this function:

static void xsession_init ( XSession session) [static]

Definition at line 50 of file xsession.c.

    session->priv = G_TYPE_INSTANCE_GET_PRIVATE (session, XSESSION_TYPE, XSessionPrivate);
XSession* xsession_new ( XServer xserver)

Definition at line 30 of file xsession.c.

    XSession *session;
    XAuthority *authority;

    session = g_object_new (XSESSION_TYPE, NULL);
    session->priv->xserver = g_object_ref (xserver);

    session_set_env (SESSION (session), "DISPLAY", xserver_get_address (xserver));
    session_set_tty (SESSION (session), xserver_get_address (xserver));
    session_set_xdisplay (SESSION (session), xserver_get_address (xserver));
    authority = xserver_get_authority (xserver);
    if (authority)
        session_set_xauthority (SESSION (session), authority, config_get_boolean (config_get_instance (), "LightDM", "user-authority-in-system-dir"));
    session_set_log_file (SESSION (session), ".xsession-errors");

    return session;

Here is the call graph for this function:

Here is the caller graph for this function: