summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-04-13Minor fixesEric Koegel4-27/+30
We can't pass around the GVariantBuilder and parse it at the same time so we'll need to fix the is-local in another way. Fix the signal emission on the manager. We may need to use a GDBusObjectManager to get the signals for interface-added/interface-removed on our Sessions (and eventually Seats?)
2015-04-13Start removing dbus dependenciesEric Koegel11-236/+89
Port CkDevice to using GVariants rather than GValues. Have ck-session-leader return a GVariantBuilder so is-local can be added.
2015-04-13Port ck-session-leader to GDBusEric Koegel6-176/+264
Getting a better understanding of GVariant. Added a test of ck-session-leader and a mock session-info to feed it usable junk data. There's still more work to do on this big GDBus port.
2015-04-13Port CkManager to GDBusEric Koegel11-778/+575
Quite a bit of work here. ck-session-leader needs to be ported.
2015-04-13CkSeat: Port to GDBusEric Koegel5-151/+185
Port the CkSeat to GDBus using the gdbus-codegen. Same as with CkSession there's now a split between public and private signals, properties, and function calls. CkSeat and CkSession host private signals and properties ConsoleKitSeat and ConsoleKitSession are public D-BUS exported ones. https://github.com/ConsoleKit2/ConsoleKit2/issues/8
2015-04-13CKSession: Port to GDBusEric Koegel8-729/+728
Port CKSession to GDBus using gdbus-codegen. The generated ConsoleKitSession object properties are used where possible. A test-session binary is generated to test some of the CkSession properties/DBUS calls. CKSession expects to be passed a GDBusConnection in ck_session_new but this doesn't happen because CKManager hasn't been ported yet. https://github.com/ConsoleKit2/ConsoleKit2/issues/8
2015-04-07Merge pull request #22 from fluxer/masterEric Koegel1-0/+3
Merging both commits, thanks!
2015-04-06fix build without PolicyKit/PolkitIvailo Monev1-0/+2
2015-04-06include gio header required for GAsyncResultIvailo Monev1-0/+1
2015-02-25Merge pull request #21 from ajacoutot/openbsdEric Koegel1-6/+2
openbsd: unbreak get_kinfo_proc() by properly initializing len
2015-02-25openbsd: unbreak get_kinfo_proc() by properly initializing lenAntoine Jacoutot1-6/+2
No need to call sysctl(3) twice since we know exactly how many structures it wants back: just one.
2015-02-18Merge pull request #20 from wolfbox/better-openpam-handlingEric Koegel2-1/+6
Check for Linux-PAM features rather than just Linux
2015-02-17Check for Linux-PAM features rather than just Linux.Andrew Aldridge2-1/+6
Some Linux distros use OpenPAM.
2014-12-14Merge pull request #19 from rworkman/rundirv2Eric Koegel3-2/+3
Fixup a couple of missed hardcoded /var/run/ usages
2014-12-11Fixup a couple of missed hardcoded /var/run/ usagesRobby Workman3-2/+3
2014-12-10Fix for GLib-CRITICAL: Source ID was not foundEric Koegel1-2/+6
On remote ck session, there was a warning generated during log out. This patch should fix that warning as well as add a couple debug lines to help future troubleshooting. Thanks to hhoffstaette for helping to troubleshoot this issue. For details see: https://github.com/ConsoleKit2/ConsoleKit2/pull/15
2014-12-09Merge pull request #17 from rworkman/rundirEric Koegel9-19/+39
Add --with-rundir configure flag
2014-12-08Add --with-rundir configure flagRobby Workman9-19/+39
This allows use of /run on tmpfs instead of /var/run without downstream symlink magic or patches.
2014-12-06Revert "Fix crash on logout/login via SunRay"Eric Koegel1-3/+1
This reverts commit 417e387750920b9e092705863a863e71a77ea431. Causes a regression with polkit authorizations. See: https://github.com/ConsoleKit2/ConsoleKit2/issues/16 https://github.com/ConsoleKit2/ConsoleKit2/issues/12
2014-11-30Fix pam-foreground-compat installEric Koegel1-7/+8
The pam-foreground-compat.ck script should be installed without requring udev.
2014-11-27Merge pull request #14 from ajacoutot/openbsd-port-syncEric Koegel10-108/+9
openbsd: cleanups and sync with ConsoleKit port
2014-11-27openbsd: cleanups and sync with ConsoleKit portAntoine Jacoutot10-108/+9
We never needed to use an external helper script with the original ConsoleKit for ck-get-x11-*, so drop these. Make sure we install the other tools and simplify the scripts in the process.
2014-11-17Keep track of the idle callbackEric Koegel1-16/+52
This way we can prevent the user applications from attempting to perform multiple system events at the same time. The additional attempts will fail.
2014-11-17Add the PrepareForSleep/Shutdown signalsEric Koegel4-35/+224
This patch adds the PrepareForSleep/Shutdown signals so apps can listed for these signals and perform operations prior to the event such as logging out of online chatrooms.
2014-11-17trivial: ignore non-empty log dir on uninstallEric Koegel1-1/+1
2014-11-11Fix installing 90-consolekit fileEric Koegel4-11/+25
This ensures the 90-consolekit file will be installed to the right location.
2014-11-11Conditionally add the SystemdServiceEric Koegel2-6/+13
Add the SystemdService service tag to the consolekit service file if we're being built with systemd support.
2014-11-11Fix installing logrotate fileEric Koegel4-19/+31
This ensures the logrotate file will rotate the history file correctly. It also now installs to the right location.
2014-11-02trivial: updates for release0.9.2Eric Koegel3-9/+31
2014-11-02Don't tie the inhibit locks to the who stringEric Koegel2-90/+34
This allows for multiple instances of the same app to hold a lock should they need to.
2014-11-02Default to not building systemd unitsEric Koegel1-1/+1
2014-11-02Add a note about CONFIG_AUDITSYSCALL and PAMEric Koegel1-0/+3
Thanks to Samuli Suominen for pointing this out.
2014-10-27Refactor the system action codeEric Koegel3-237/+188
This patch reduces some of the copy/paste code in all the system actions of the manager. It also fills in the logging events for the suspend and hibernate types.
2014-10-27trivial: update documentationEric Koegel1-51/+60
2014-10-26Emulate the logind dbus API betterEric Koegel4-30/+326
This patch: - Adds the PowerOff/Reboot and respective Can APIs. - Adds the PolkicyKit interactivity flag for the power and suspend API calls. Same as logind. - Adds a note of when the API calls were introduced to the docs. The goal is just to make it easier for consumers of the APIs to support both ConsoleKit2 and logind. The Stop/Restart API calls from ConsoleKit1 are still present and function almost exactly the same (only change is they respect inhibitors now). This patch fixes: https://github.com/ConsoleKit2/ConsoleKit2/issues/10
2014-10-21Escape the who string before using itEric Koegel2-4/+48
When creating the inhibit named pipe we need to ensure we escape the special characters out so that it's safe for use. This also sets up the test-inhibit program to try one such input.
2014-10-20make distcheck requires config.rpathEric Koegel1-0/+614
In the main srcdir even though autotools installs it in the autotools folder.
2014-10-20Add autotools files to autotools folderEric Koegel3-614/+3
And tell git to ignore them. This should help with some of the clutter.
2014-10-20trivial: update pot fileEric Koegel1-7/+7
2014-10-20trivial: updates for release0.9.1Eric Koegel3-3/+20
2014-10-20Add HybridSleep support and change CanSleepEric Koegel19-58/+372
Emulate the logind API to make it more easier for porting to ConsoleKit2 for the CanSuspend/CanHibernate/CanHybridSleep methods. They now return: yes - system can and user explicitly authorized by polkit, rbac, or neither is running no - system can and user explicitly unauthorized by polkit or rbac challenge - system can and user requires elevation via polkit na - system does not support it (hardware or backend support missing). The auth methods have been removed. Currently HybridSleep only works on Linux.
2014-10-19trivial: Change release from .xz to .biz2Eric Koegel2-7/+7
GitHub doesn't support .xz so switch to something it does.
2014-10-19Updates prior to release0.9.0Eric Koegel3-3/+32
2014-10-19Delete any lingering inhibit pipes on startupEric Koegel1-0/+38
If ConsoleKit crashes (post the backtrace as a bug please!) or if the computer crashes (don't report this :) then there may be stale inhibit pipe files in the directory. Clean those up on startup (and shutdown just to be extra safe).
2014-10-19Install 90-consolekit script to xinitrc dirEric Koegel1-0/+5
This installs an Xsession.d script for ck-launch-session. By default the script is installed to /etc/X11/xinit/xinitrc.d but can be changed by a --with-xinitrc-dir configure switch.
2014-10-19Fix make distcheck when installing log fileEric Koegel3-4/+20
2014-10-19Add --with-logrotate-dir configure optionEric Koegel2-1/+18
We now install the logrotate file and default to /etc/logrotate.d as the default to install to.
2014-10-19Add additional files to data folderEric Koegel3-0/+42
Add the logrotate and Xsession.d script for ck-launch-session to the data folder so it's easier for distros to include it. These files were pulled from the Debian ConsoleKit package: http://ftp.de.debian.org/debian/pool/main/c/consolekit/consolekit_0.4.6-5.debian.tar.xz
2014-10-19Update .pot fileEric Koegel2-21/+21
And fix minor issue with configure.ac from the last merge.
2014-10-19Merge branch 'dbus-api-additions'Eric Koegel33-29/+2207
Implement the Suspend/Hibernate DBUS APIs for: https://github.com/ConsoleKit2/ConsoleKit2/issues/3 Conflicts: configure.ac