Age | Commit message (Collapse) | Author | Files | Lines |
|
Now we support the mode string of the inhibit dbus call. It can
either be a "block" or "delay". If no delay lock is done, a
system call action will delay 2 seconds to give applications time
to save state. Holding a delay lock will increase the timeout to
a max of 8 seconds.
|
|
It was used to provide /var/run/console/<username> to mimic what
PAM did for at_console. This script causes race condition issues
on OpenBSD and won't be useful when the multi-seat features land.
|
|
Port to GDBUS
It ports CkSession, CkSessionLeader, CkSeat, CkManager, and main.c
over to GDBus. It's hard to indivially port one of those at a time
since they end up working together.
There's a split between the private and DBUS facing function
calls and signals. This was required because of how the
gdbus-codegen is used.
More test programs have been created to verify that things work
the same as before.
Additional dbus error codes are returned by CK2 now to help users
of the library ignore non-fatal conditions (like the activate
signal failed because the session is already active) and it's
documented in the xml files.
Glib also got bumped up to 2.40, some of the newer function calls
were needed.
This is for: https://github.com/ConsoleKit2/ConsoleKit2/issues/8
|
|
|
|
|
|
|
|
See http://docs.transifex.com/developer/client/ for the documentation
on the client.
|
|
This calls the correct public dbus signals for prepare to sleep
and shutdown.
|
|
Since we set an initial error message in the event g_signal_emit
isn't handled for the session activate signal, we need to keep
track of that error message. Additionally, that signal call may
return a different error message such as the session is
already activate on the seat so we need to keep track of both since
we'll need to free the memory associated with them.
|
|
When calling get_sessions/seats return NULL + an error stating
that there's nothing to return. This makes the GDBus branch work
like the pre-GDBus code.
|
|
This reverts commit eefeb4cca69150de1f9f99c48c84eff67f56a4f7.
|
|
This reverts commit 45cc0180fae3708ce17d16578041edb54e8c308d.
|
|
Otherwise we end up getting an error over a previous error message.
|
|
And update docs list error causes.
|
|
|
|
This helps out consumers who want to know when the error message
is something simple like Session already active.
|
|
(int)unix_user should be (uid_t) because it may be (un)signed.
POSIX is vague about the datatype
http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_12
|
|
|
|
|
|
uid and pid could be used uninitialized, CWE-457
|
|
Coverity CID 89285, CWE-484
|
|
|
|
|
|
|
|
Otherwise GDBus doesn't think we handled the call and gets angry.
|
|
Otherwise GDBus doesn't think we handled the call and gets angry.
|
|
|
|
|
|
When a session has a name-owner change and loses its owner, we
need to remove it from the manager as it's going away.
|
|
We need to set the values in the keyfile, not try to read values
in the keyfile.
|
|
We need to parse the string into a boolean or int before stuffing
it into the GVariant. Also add a check for is-local in
test-session-leader.
|
|
|
|
GDBus/GVariant dislikes NULL strings so we have to add workarounds
for that shortcoming.
|
|
So we can easily track when dbus calls happen when compiled with
--enable-debug=full
Additionally fix the session Activate signal failure handling.
|
|
Otherwise we get a warning message:
GLib-GObject-CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
|
|
|
|
Add some checks for opening and closing sessions from the Manager.
Also unref the variants that get created and close the inhibit fd
when done.
|
|
Fix make distcheck, bump minimum glib to 2.40 since we're using
that with this port to GDBus. Properly return the error messages
when calling Inhbit and it fails and fix some other GDBus return
values.
|
|
Might as well continue to test everything and print the output to
easily compare changes before and after the port to GDBus. We
don't currently have a way to create seats on the fly to test out
more, but that will come with the multi-seat code when we get there.
|
|
Workaround the issue of not easily being able to addpend new
values to the GVariant.
|
|
Let test-session test all the public dbus methods of CkSession.
Additionally, fix the active signal on CkSession and a couple
other warning messages.
|
|
Fix the complete_get_sessions_for_unix_user and simplify CkSeat's
dbus_get_sessions.
|
|
|
|
|
|
This adds some of the missing methods that were missing during
the port. Additionally, some of them have been reworked to fix
warning messages.
|
|
|
|
|
|
Now we can start the daemon, call ck-launch-session and get info
about it from ck-list-sessions.
|
|
Need to add in the dbus stuff, the codegen doesn't help us here.
|
|
Fix some method calls, add more public dbus api handling for seats.
Added the dbus library deps back in so the ck-connector doesn't
have to be ported right away. Would like to start working on
fixing what's currently ported and testing everything.
|