Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
This will fix the display of ck-list-sessions on a 64-bit
system and CK2 won't try to compare to a bogus ssid.
|
|
There's no need to make the mount options more complicated than
they need to be.
|
|
A DM can set the 'user' property rather than the 'unix-user' as
an override to force a specific uid during session startup. We
just need to convert that back to a 'unix-user' in the session
leader before handing that data back to the manager.
|
|
|
|
This way applications can know which seats are available and can
easily walk the list to gather whatever information they need.
The section will be something like
[Seats]
seats=/org/freedesktop/ConsoleKit/Seat1 /org/freedesktop/ConsoleKit/Seat2
|
|
Mode: default
Matched 5 languages
|
|
More cgroup functionality
|
|
|
|
|
|
|
|
|
|
Ensure old runtime dir is clean before using it in case we crashed
on the last run.
Lockdown the dbus properties of CkSession because we use those
properties internally and they shouldn't change.
|
|
This way console logins also get the env variable
|
|
This adds support for implementing the runtime dir spec. ConsoleKit2
will create $RUNDIR/users on the first session creation and then
$RUNDIR/users/$uid for each user logging in that keeps an active
session. CK2 will clean up the $uid folder once all sessions of that
user have been closed. CK2 will also attempt to mount the user's
rundir as a tmpfs mount owned by the user. This way if CK2 crashes
the directory will get cleaned up on next system restart. CK2 will
not create a runtime dir for root.
http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
https://github.com/ConsoleKit2/ConsoleKit2/issues/41
|
|
When assigning session to active VT prefer graphical sessions
|
|
Fix undefined behavior
|
|
I case when we launch graphical session on top of text session on the
same VT we want to mark newly created graphical session as active.
|
|
It is unlikely that ck-log-system-start would crash because of this, but
still it is better to have it fixed.
|
|
|
|
Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
|
|
This code is from the upower-0.9 branch with very little change,
so it's not really fair to call me the author...
Consider this a first attempt at addressing CK2 Issue #55
Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
|
|
XDG_VTNR is another way to obtain the X11 display device. As SDDM sets
this environment variable, it is now much simpler to use it with pam_ck_connector.
Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
|
|
Imporve NetBSD support
|
|
|
|
To fit Linux's one
* return NULL if invalid tty
* return allocated string otherwise
|
|
NetBSD 5 and later have getpeereid(3), but it only for euid.
Use getsockopt(2) with LOCAL_PEEREID if available in priority to it.
|
|
Add NetBSD support
|
|
Apply overlooked PREFIX/lib -> LIBDIR substitution
|
|
|
|
* based on patches for ConsoleKit 0.3.0 from NetBSD Packages Collection
* catch up with help from sysdep implementation for OpenBSD and FreeBSD
* ck-system-suspend is based on NetBSD powerd(8) sleep_button script
|
|
Filter out the kdm user
|
|
|
|
|
|
|
|
Fix some libdir/scripts stuff missed in 4d87a25ea0af
|
|
|
|
This reverts commit bee63889f4a0b8f57807a61d8396346cec8cd5b1.
There are some cases where ConsoleKit2 would crash after successfully
suspending so revert this commit.
|
|
* Don't try to run "chmod +x" on 90-consolekit, it is not a executable.
* Use INSTALL_SCRIPT instead of INSTALL_PROGRAM. According to a comment
in the header of 90-consolekit this file is sourced by Xsession(5), not
executed. Now it also doesn't try to run strip on the 90-consolekit file.
|
|
Transifex translation update
|
|
Mode: default
Matched 4 languages
|
|
|
|
Otherwise we will break the build on some platforms. Also update
the translations.
|
|
This removes and cleans up some duplicated code. Both the ck-manager
and the ck-session had an implementation to get the calling uid/pid
so it's now moved to a common location. The inhibit changed signal
has been made more explicit in when the delay is removed. The
polkit permissions was duplicated over two functions and has been
moved to a single common one. So this patch is just minor house
keeping.
|
|
This way CK2 doesn't get confused and think multiple users are
logged in when it's just a service account.
|
|
Transifex translation update
|
|
Mode: default
Matched 4 languages
|
|
Mode: default
Matched 4 languages
|
|
Also improve the translation messages in the process groups and
mark that file translatable.
|
|
|