openbsd-ports/x11/slim/patches/patch-Ck_cpp
landry c4ea8f7c71 Update to slim 1.3.4.
- switch to cmake.
- add missing setusercontext() call in switchuser.cpp, now the ulimits
  are properly applied when logging in.
- add support for bsd_auth(3) through auth_userokay(3). Now allows to
  login via login_ldap/login_yubikey/etc...
- add support for consolekit, no need to do ck-launch-session in
  .xinitrc anymore.
- make consolekit support at runtime optional, ie don't badly bail out
  if systemwide dbus daemon is not running. Being discussed with
upstream.
parts based on a diff from 'johnw', ok ajacoutot@
2012-09-02 09:22:59 +00:00

21 lines
657 B
Plaintext

$OpenBSD: patch-Ck_cpp,v 1.1 2012/09/02 09:22:59 landry Exp $
Keep track of the successful consolekit session opening
--- Ck.cpp.orig Tue Jun 26 10:20:14 2012
+++ Ck.cpp Sat Sep 1 23:06:17 2012
@@ -101,6 +101,7 @@ namespace Ck {
void Session::open_session(const std::string &display, uid_t uid)
{
+ session = false;
ckc = ck_connector_new();
if(!ckc)
@@ -113,6 +114,7 @@ namespace Ck {
throw Exception(__func__, "cannot open ConsoleKit session: OOM, DBus system bus "
" not available or insufficient privileges");
}
+ session = true;
}
const char * Session::get_xdg_session_cookie()