0

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++

Community
  • 1
  • 1
Gustavo Carreno
  • 9,499
  • 13
  • 45
  • 76

2 Answers2

1

I'm pretty sure that monitoring DBUS messages you can catch messages about session enter and exit. Actually i don't know if FreePascal provide DBUS apis.

A dirty solution can be execution and parse /usr/bin/dbus-monitor output.

Good luck

Emilio
  • 3,901
  • 11
  • 44
  • 50
1

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

Marco van de Voort
  • 25,628
  • 5
  • 56
  • 89