summaryrefslogtreecommitdiffstats
path: root/remote/post-patch
diff options
context:
space:
mode:
authorSimon Rettberg2013-06-24 18:38:30 +0200
committerSimon Rettberg2013-06-24 18:38:30 +0200
commite52c2ba8b9827288cfc2d40f2f259884db51b034 (patch)
tree03e157322919da419b9f8b88ec53c7fa3ce49d2c /remote/post-patch
parentMerge branch 'master' of simonslx:openslx-ng/tm-scripts (diff)
downloadtm-scripts-e52c2ba8b9827288cfc2d40f2f259884db51b034.tar.gz
tm-scripts-e52c2ba8b9827288cfc2d40f2f259884db51b034.tar.xz
tm-scripts-e52c2ba8b9827288cfc2d40f2f259884db51b034.zip
post_process_target: Replace libck-connector.so with dummy
This is to prevent KDM from trying to talk to ConsoleKit (which we don't use) ConsoleKit is not being actively developed anymore, and we want to switch to systemd (and its logind) entirely
Diffstat (limited to 'remote/post-patch')
-rw-r--r--remote/post-patch/ck-connector/fake-ck-connector.c55
1 files changed, 55 insertions, 0 deletions
diff --git a/remote/post-patch/ck-connector/fake-ck-connector.c b/remote/post-patch/ck-connector/fake-ck-connector.c
new file mode 100644
index 00000000..42fa1546
--- /dev/null
+++ b/remote/post-patch/ck-connector/fake-ck-connector.c
@@ -0,0 +1,55 @@
+#include <dbus/dbus.h>
+#include <sys/types.h>
+
+struct _CkConnector;
+typedef struct _CkConnector CkConnector;
+
+
+struct _CkConnector
+{
+ int refcount;
+ char *cookie;
+ dbus_bool_t session_created;
+ DBusConnection *connection;
+};
+
+void ck_connector_unref (CkConnector *connector)
+{
+ return;
+}
+
+CkConnector * ck_connector_ref (CkConnector *connector)
+{
+ return connector;
+}
+
+CkConnector * ck_connector_new (void)
+{
+ return (CkConnector*)1;
+}
+
+dbus_bool_t ck_connector_open_session (CkConnector *connector, DBusError *error)
+{
+ return 1;
+}
+
+dbus_bool_t ck_connector_open_session_with_parameters (CkConnector *connector, DBusError *error, const char *first_parameter_name, ...)
+{
+ return 1;
+}
+
+dbus_bool_t ck_connector_open_session_for_user (CkConnector *connector, uid_t user, const char *display_device, const char *x11_display, DBusError *error)
+{
+ return 1;
+}
+
+const char * ck_connector_get_cookie (CkConnector *connector)
+{
+ return NULL;
+}
+
+dbus_bool_t ck_connector_close_session (CkConnector *connector, DBusError *error)
+{
+ return 1;
+}
+