Re: Any reliable way to find the X11 display id and authority file for local session running in actual monitor.

2017-08-11 Thread Sai Prasanna
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

Re: Any reliable way to find the X11 display id and authority file for local session running in actual monitor.

2017-08-11 Thread Sai Prasanna
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

Re: Any reliable way to find the X11 display id and authority file for local session running in actual monitor.

2017-08-02 Thread Michal Srb
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

Any reliable way to find the X11 display id and authority file for local session running in actual monitor.

2017-08-01 Thread Sai Prasanna
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