Thanks for the help.
I am developing in go lang and found a perfect binding in dbusbindings.
The logind dbus api was not intutive at first, but figured it out after
some examples.
Posting the go lang POC of above loginctl code to get active display. (So
anyone following this thread can spend
Hi,
Thanks Michal. How to use Dbus API directly to get the same results?.
I think loginctl is missing in some old distros.
Thank you,
Sai Prasanna
On Wed, Aug 2, 2017 at 9:24 PM, Michal Srb wrote:
> Hi,
>
> I would say a systematic way to do it is using the systemd/logind
Hi,
I would say a systematic way to do it is using the systemd/logind dbus api.
You can see the information using the command line tool:
# loginctl show-seat seat0
Id=seat0
ActiveSession=1 <- interesting
CanMultiSession=yes
CanTTY=yes
CanGraphical=yes
Sessions=1564 1
IdleHint=no
Hi,
I am developing a remote support product. It is like a vnc server. I have
used xcb for screen capturing and input simulation.
My use case is as follows.
1) I have a service that runs as root, this service does many actions other
than remote support stuff.
2) This service is responsible for