openbsd-ports/x11/slim/patches/patch-Ck_h
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

20 lines
693 B
Plaintext

$OpenBSD: patch-Ck_h,v 1.1 2012/09/02 09:22:59 landry Exp $
Add a boolean to track the consolekit session success
--- Ck.h.orig Tue Jun 26 10:20:14 2012
+++ Ck.h Sat Sep 1 23:06:38 2012
@@ -27,12 +27,13 @@ namespace Ck {
private:
CkConnector *ckc;
DBusError error;
-
+ bool session;
const char * get_x11_device(const std::string &display);
dbus_bool_t ck_connector_open_graphic_session(const std::string &display,
uid_t uid);
public:
const char * get_xdg_session_cookie();
+ bool has_session() {return session;}
void open_session(const std::string &display, uid_t uid);
void close_session();