Age | Commit message (Collapse) | Author | Files | Lines |
|
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?)
|
|
Port CkDevice to using GVariants rather than GValues.
Have ck-session-leader return a GVariantBuilder so is-local can
be added.
|
|
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.
|
|
Quite a bit of work here. ck-session-leader needs to be ported.
|
|
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
|
|
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
|
|
Merging both commits, thanks!
|
|
|
|
|
|
openbsd: unbreak get_kinfo_proc() by properly initializing len
|
|
No need to call sysctl(3) twice since we know exactly how many
structures it wants back: just one.
|
|
Check for Linux-PAM features rather than just Linux
|
|
Some Linux distros use OpenPAM.
|
|
Fixup a couple of missed hardcoded /var/run/ usages
|
|
|
|
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
|
|
Add --with-rundir configure flag
|
|
This allows use of /run on tmpfs instead of /var/run
without downstream symlink magic or patches.
|
|
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
|
|
The pam-foreground-compat.ck script should be installed without
requring udev.
|
|
openbsd: cleanups and sync with ConsoleKit port
|
|
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.
|
|
This way we can prevent the user applications from attempting to
perform multiple system events at the same time. The additional
attempts will fail.
|
|
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.
|
|
|
|
This ensures the 90-consolekit file will be installed to the
right location.
|
|
Add the SystemdService service tag to the consolekit service file
if we're being built with systemd support.
|
|
This ensures the logrotate file will rotate the history file correctly.
It also now installs to the right location.
|
|
|
|
This allows for multiple instances of the same app to hold a lock
should they need to.
|
|
|
|
Thanks to Samuli Suominen for pointing this out.
|
|
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.
|
|
|
|
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
|
|
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.
|
|
In the main srcdir even though autotools installs it in the
autotools folder.
|
|
And tell git to ignore them. This should help with some of the
clutter.
|
|
|
|
|
|
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.
|
|
GitHub doesn't support .xz so switch to something it does.
|
|
|
|
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).
|
|
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.
|
|
|
|
We now install the logrotate file and default to /etc/logrotate.d
as the default to install to.
|
|
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
|
|
And fix minor issue with configure.ac from the last merge.
|
|
Implement the Suspend/Hibernate DBUS APIs for:
https://github.com/ConsoleKit2/ConsoleKit2/issues/3
Conflicts:
configure.ac
|