fleet/orbit/pkg/execuser
Lucas Manuel Rodriguez 34313b2b33
🤖 Fix fleetd escrow in X11 multi-user sessions (#39795)
**Related issue:** Resolves #31633.

Main change is stop relying on `who` command output to get the value of
the DISPLAY variable on X11 sessions (old distributions), and instead
search the value of the `DISPLAY` variable in processes that are owned
by the target user.

- [X] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.

## Testing

- [x] QA'd all new/changed functionality manually

## fleetd/orbit/Fleet Desktop

- [x] Verified compatibility with the latest released version of Fleet
(see [Must
rule](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/workflows/fleetd-development-and-release-strategy.md))
- [x] If the change applies to only one platform, confirmed that
`runtime.GOOS` is used as needed to isolate changes
- [x] Verified that fleetd runs on macOS, Linux and Windows
- [x] Verified auto-update works from the released version of component
to the new version (see [tools/tuf/test](../tools/tuf/test/README.md))


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Enhanced X11 session detection for improved support in multi-session
environments, providing more reliable display variable identification in
complex session configurations.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-02-16 14:15:10 -03:00
..
execuser.go Fix orbit active GUI session detection to start Fleet Desktop and key escrowing on Linux (#39777) 2026-02-16 11:41:16 -03:00
execuser_darwin.go Fix orbit active GUI session detection to start Fleet Desktop and key escrowing on Linux (#39777) 2026-02-16 11:41:16 -03:00
execuser_linux.go 🤖 Fix fleetd escrow in X11 multi-user sessions (#39795) 2026-02-16 14:15:10 -03:00
execuser_linux_test.go 🤖 Fix fleetd escrow in X11 multi-user sessions (#39795) 2026-02-16 14:15:10 -03:00
execuser_windows.go Fix orbit active GUI session detection to start Fleet Desktop and key escrowing on Linux (#39777) 2026-02-16 11:41:16 -03:00
execuser_windows_diff.sh Orbit: Add Fleet Desktop support to Windows (#4873) 2022-04-01 17:28:51 -03:00
transient_writer.go Adding telemetry for specific Fleet Desktop errors (#23349) 2024-10-31 14:24:42 -05:00
transient_writer_test.go Adding telemetry for specific Fleet Desktop errors (#23349) 2024-10-31 14:24:42 -05:00