Detecting I / O session under KDE / Gnome with FreePascal

I am asking this question after I got a very good answer: How to define 2 "Switch User" states in Windows

My intention is to find out if the Switch user in KDE / Gnome has a similar API call that I can control with FreePascal.

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

0


source to share


2 answers


Yes, the dbus package is installed and afaik I ran the examples late last year.



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

+1


source


I am sure that when monitoring DBUS messages, you can catch the input and output session messages. Actually I don't know if FreePascal provides DBUS apis.

A dirty solution could be the execution and parsing of / usr / bin / dbus-monitor.



Good luck.

+1


source







All Articles