~ci-train-bot/lightdm/lightdm-ubuntu-zesty-1679

« back to all changes in this revision

Viewing changes to src/session-child.c

  • Committer: Eric Koegel
  • Date: 2016-01-25 08:58:03 UTC
  • mto: This revision was merged to the branch mainline in revision 2272.
  • Revision ID: eric.koegel@gmail.com-20160125085803-s564zivui7usk0yp
Add XDG_RUNTIME_DIR from ConsoleKit2

Show diffs side-by-side

added added

removed removed

Lines of Context:
621
621
        if (console_kit_cookie)
622
622
        {
623
623
            gchar *value;
 
624
            gchar *runtime_dir;
624
625
            value = g_strdup_printf ("XDG_SESSION_COOKIE=%s", console_kit_cookie);
625
626
            pam_putenv (pam_handle, value);
626
627
            g_free (value);
 
628
 
 
629
            runtime_dir = ck_get_xdg_runtime_dir (console_kit_cookie);
 
630
            if (runtime_dir)
 
631
            {
 
632
                gchar *value;
 
633
                value = g_strdup_printf ("XDG_RUNTIME_DIR=%s", runtime_dir);
 
634
                pam_putenv (pam_handle, value);
 
635
                g_free (value);
 
636
                g_free (runtime_dir);
 
637
            }
627
638
        }
628
639
    }
629
640