kolide / launcher

Osquery launcher, autoupdater, and packager
https://kolide.com/launcher
Other
502 stars 98 forks source link

Get DISPLAY from display server process's connection to display socket #1589

Closed RebeccaMahany closed 5 months ago

RebeccaMahany commented 5 months ago

Relates to https://github.com/kolide/launcher/issues/1537

Attempts to make how we set DISPLAY for the desktop process more reliable and less brittle.

We already look for the display server process -- per suggestion from @Micah-Kolide, check that process's connections to find the display socket, and parse the display number from there.