Search code examples
sessiongnomekde-plasmafreepascalswitch-user

Detect enter/exit session under KDE/Gnome with FreePascal


I'm asking this question after I got a very good answer to: How do I detect the 2 states of “Switch User” in Windows

My intention is to find out if the Switch User under KDE/Gnome has a similar API call I can monitor with FreePascal.

If not with FreePascal, at least the respective lib entry used in C/C++


Solution

  • Yes, a dbus package is installed, and afaik I ran the examples end of last year.

    See /packages/dbus/examples/busexample.pp for an example