summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2021-07-04add a session-service parameter mainly to be used by gdmRobert Nagy3-0/+68
this commit also adds GetSessionService so that the session service can be queried over dbus
2021-07-04do not hardcode seat0 for Seat1 in ListSessions because CK is not linux onlyRobert Nagy1-7/+1
2021-06-03Merge pull request #119 from TimB87/masterAntoine Jacoutot1-6/+6
make consolekit2 not spam the syslog with an unimportant error
2021-06-03do not unref an object which was not referenced before andRobert Nagy1-7/+4
cleanup the code a bit to avoid confusion
2020-12-07netbsd: Add missing length argument to mount(2)nia1-1/+1
2020-12-07netbsd: Don't include sys/user.h, there's no such headernia1-1/+0
2020-12-04only disconnect the signal handler after the lock is removedRobert Nagy1-1/+1
ck_inhibit_remove_lock() will end up emitting a changed signal so disconnecting the signal handler before that is not a good idea
2020-11-29Merge pull request #122 from rnagy/who_argAntoine Jacoutot1-2/+2
get_named_pipe_path does not require the 'who' argument anymore
2020-11-29get_named_pipe_path does not require the 'who' argument anymoreRobert Nagy1-2/+2
2020-11-29Merge pull request #121 from rnagy/inhibit_fixAntoine Jacoutot4-6/+21
change the inhibitor lock handling to use the named_pipe_path as a re…
2020-11-29change the inhibitor lock handling to use the named_pipe_path as a referenceRobert Nagy4-6/+21
since one process can take multiple inhibitor locks make sure that the correct entry gets removed from the inhibit_list by using 'named_pipe_path' to find the proper entry instead of 'who' because that is not unique
2020-11-22OpenBSD: merge enhancements from portsAntoine Jacoutot2-39/+38
- open the proper configuration device (so getty doesn't mess with consoles) - remove unused header - g_return_val_if_fail: print full path to device - simplify stat2proc - fix ck_get_max_num_consoles - enable VT on arm64 - implement ck_system_can_suspend and ck_system_can_hibernate
2020-11-22ck_open_a_console: unbreak on OpenBSDAntoine Jacoutot1-0/+6
OpenBSD only allows change-setting ioctls when FWRITE is set on the descriptor.
2019-06-10make consolekit2 not spam the syslog with an unimportant errorTimB871-6/+6
2017-11-09fix: Only use tmpfs mounts on DFly if supportedEric Koegel1-2/+5
The vfs/tmpfs/tmpfs_mount.h file must be present on DragonFlyBSD for tmpfs mounts to properly work.
2017-11-01fix: incompatible-pointer-type warningEric Koegel1-1/+1
2017-10-31Remove some redundant code probing for hibernation, suspend, and sleepMarkus Pfeiffer1-51/+3
2017-10-31Fix make_tmpfs for DragonFlyMarkus Pfeiffer1-7/+11
The previous version of the code assumed that DragonFly supports passing a string of options to mount(2). This is not the case and so this lead to a bug where a user's tmpfs was created with invalid ownership and mode. We now correctly pass a struct of type tmpfs_mount_info. The struct is only exported as of DragonFly 5.1 and newer, so this code will only build on a recent version of DragonFly.
2017-10-29Add ListSeats method to Manager interfaceA. Wilcox2-0/+57
This adds a logind-compatible ListSeats method to the ConsoleKit.Manager interface. This is needed because the seat name does not always exactly map to the object path (for instance, /Seat1 is 'seat0'). This also allows SDDM to work properly with ConsoleKit2.
2017-10-28Remove DragonFly specific code from FreeBSD sysdepsMarkus Pfeiffer1-66/+0
2017-10-28Add DragonFlyBSD as a platformMarkus Pfeiffer3-1/+626
2017-10-23Fixed a memory leak in ck-managerHummer120071-1/+1
2017-07-24fix: Seat property on Session interfaceEric Koegel1-1/+11
return 'Seat1', '/org/freedesktop/ConsoleKit/Seat1' instead of the object path twice.
2017-07-23feat: Add CanControlSession dbus callEric Koegel2-0/+24
This way a program can query whether CK2 can actually do the Session Controller stuff before attempting to call TakeControl.
2017-07-15fix: Allow changing to VTs we don't have a session forEric Koegel1-8/+19
As an example, this allows you to be on VT2 and switch to VT5 which isn't currently being used for anything.
2017-07-15feat: Add wscons headers for OpenBSDEric Koegel1-3/+15
It won't be used until a session controller backend is built for OpenBSD but it will be one step less to add.
2017-07-06fix: Use KDSKBMODE if definedEric Koegel1-0/+4
To fix compiling on OpenIndiana.
2017-07-06fix: Use #ifdef HEADER_H instead of #ifdef OSEric Koegel1-2/+14
To fix compiling on FreeBSD.
2017-06-22fix: FreeBSD session activationEric Koegel2-10/+30
This is based heavily on the work of Jesper Schmitz Mouridsen in: https://bugs.freebsd.org/bugzilla/attachment.cgi?id=179399&action=diff from: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202269 Fixes: https://github.com/ConsoleKit2/ConsoleKit2/issues/85
2017-06-22fix: Place sessions with a VT on the static Seat1Eric Koegel1-1/+5
This way they can be marked active.
2017-06-21fix: clean up clang warningsEric Koegel2-4/+4
2017-06-21fix: correct uninitialized variable warningEric Koegel1-2/+1
2017-06-21chore: more autotools cleanup workEric Koegel1-1/+1
2017-06-21fix: Explicitly check for needed symbolsEric Koegel1-6/+6
Such as VT_RELDISP, rather than a specific header file. This will fix VT calls not being built on FreeBSD.
2017-06-20fix: Correct build errors in OpenBSDEric Koegel1-2/+11
2017-06-20fix: fix compiling on FreeBSDEric Koegel2-2/+4
And remove -Wredundant-decls from build warnings
2017-05-22chore: update tests for new methods addedEric Koegel2-1/+14
Ensure all the new methods and properies get added to the tests.
2017-05-22fix: Allow session-class property to be set via OpenSessionWithParametersEric Koegel1-0/+1
Otherwise there's no way for a DM to set it.
2017-05-21feat: add a session-state property and methodEric Koegel2-3/+55
CK2 will change this property dynamically depending on if the session is active or online. At some point we may also provide the "closing" state as well but it's currently unused. This property maps to the logind state.
2017-05-21feat: Add session-class dbus property and get methodEric Koegel2-3/+54
This adds a session-class property to the CK2 Session. It maps to the class property of logind.
2017-05-21fix: remove the rest of the gcc warningsEric Koegel15-44/+41
2017-05-21fix: remove warning about redeclarationEric Koegel1-2/+0
2017-05-21fix: remove warnings about redundant function declarationsEric Koegel9-18/+0
2017-05-21chore: simplify configure.acEric Koegel1-15/+28
Pull in the m4 macros from the xfce4-dev-tools so we have ways to simplify and shorten the configure.ac file.
2017-05-20feat: Add dbus method GetVTNr to SessionEric Koegel2-0/+25
This method call simple returns the VTNr property but may be useful to applications that don't want to connect to all the dbus properies to query just that one.
2017-05-18feat: document session types allowedEric Koegel2-8/+13
Using the same ones logind does for compatibility. Additionally, default to "unspecified" if no type is set instead of an empty string.
2017-05-14feat: add dbus LockSession/UnlockSessionEric Koegel5-31/+186
To ConsoleKit Manager interface. Programs like GDM are using these calls with logind so this will make adding CK2 support easier.
2017-05-14feat: add dbus ActivateSession/ActivateSessionOnSeatEric Koegel4-8/+149
To ConsoleKit Manager interface. Programs like GDM are using these calls with logind so this will make adding CK2 support easier.
2017-05-06Don't try to remove the cgroup when emptyEric Koegel1-11/+0
It produces a warning message and doesn't have much overhead anyway. Fixes: https://github.com/ConsoleKit2/ConsoleKit2/issues/72
2017-05-06Add a LockedHint PropertyEric Koegel2-4/+88
This adds a LockedHint property to ConsoleKit.Session and a SetLockedHint dbus method to change it. The SetLockedHint method is resitricted to the user that owns the session. For: https://github.com/ConsoleKit2/ConsoleKit2/issues/89