diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -94,7 +94,6 @@ | |||
94 | #include "kex.h" | 94 | #include "kex.h" |
95 | #include "monitor_wrap.h" | 95 | #include "monitor_wrap.h" |
96 | #include "sftp.h" | 96 | #include "sftp.h" |
97 | #include "consolekit.h" | ||
98 | 97 | ||
99 | #if defined(KRB5) && defined(USE_AFS) | 98 | #if defined(KRB5) && defined(USE_AFS) |
100 | #include <kafs.h> | 99 | #include <kafs.h> |
@@ -1145,9 +1144,6 @@ do_setup_env(Session *s, const char *shell) | |||
1145 | #if !defined (HAVE_LOGIN_CAP) && !defined (HAVE_CYGWIN) | 1144 | #if !defined (HAVE_LOGIN_CAP) && !defined (HAVE_CYGWIN) |
1146 | char *path = NULL; | 1145 | char *path = NULL; |
1147 | #endif | 1146 | #endif |
1148 | #ifdef USE_CONSOLEKIT | ||
1149 | const char *ckcookie = NULL; | ||
1150 | #endif /* USE_CONSOLEKIT */ | ||
1151 | 1147 | ||
1152 | /* Initialize the environment. */ | 1148 | /* Initialize the environment. */ |
1153 | envsize = 100; | 1149 | envsize = 100; |
@@ -1292,11 +1288,6 @@ do_setup_env(Session *s, const char *shell) | |||
1292 | child_set_env(&env, &envsize, "KRB5CCNAME", | 1288 | child_set_env(&env, &envsize, "KRB5CCNAME", |
1293 | s->authctxt->krb5_ccname); | 1289 | s->authctxt->krb5_ccname); |
1294 | #endif | 1290 | #endif |
1295 | #ifdef USE_CONSOLEKIT | ||
1296 | ckcookie = PRIVSEP(consolekit_register(s, s->display)); | ||
1297 | if (ckcookie) | ||
1298 | child_set_env(&env, &envsize, "XDG_SESSION_COOKIE", ckcookie); | ||
1299 | #endif /* USE_CONSOLEKIT */ | ||
1300 | #ifdef USE_PAM | 1291 | #ifdef USE_PAM |
1301 | /* | 1292 | /* |
1302 | * Pull in any environment variables that may have | 1293 | * Pull in any environment variables that may have |
@@ -2360,10 +2351,6 @@ session_pty_cleanup2(Session *s) | |||
2360 | 2351 | ||
2361 | debug("session_pty_cleanup: session %d release %s", s->self, s->tty); | 2352 | debug("session_pty_cleanup: session %d release %s", s->self, s->tty); |
2362 | 2353 | ||
2363 | #ifdef USE_CONSOLEKIT | ||
2364 | consolekit_unregister(s); | ||
2365 | #endif /* USE_CONSOLEKIT */ | ||
2366 | |||
2367 | /* Record that the user has logged out. */ | 2354 | /* Record that the user has logged out. */ |
2368 | if (s->pid != 0) | 2355 | if (s->pid != 0) |
2369 | record_logout(s->pid, s->tty, s->pw->pw_name); | 2356 | record_logout(s->pid, s->tty, s->pw->pw_name); |