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