fleet/orbit/pkg/execuser
Lucas Manuel Rodriguez bb310e685d
Support Ubuntu 24.04 with Xorg (by detecting user's DISPLAY environment variable) (#18996)
#18925 (Should also fix #17660.)

Tests:
- Ubuntu 22.04.2
	- Wayland
		- Works with chrome  
		- Doesn't work with Firefox. 
	- Xorg
		- Works with Chrome.  
		- Works with Firefox. 
- Ubuntu 24.04
	- Wayland
		- Doesn't work with Chrome. 
		- Doesn't work with Firefox. 
- Xorg (when using Xorg it defaults to `DISPLAY=:1`, and with the
changes in this PR it works):
		- Works with Chrome.  
		- Works with Firefox.  
---

How to change between Wayland and Xorg:

- Set `WaylandEnable=false` in `/etc/gdm3/custom.conf` and reboot.

---

How to determine what's running:
```sh
$ loginctl
SESSION  UID USER SEAT  TTY 
      2 1000 luk  seat0 tty2
     c2 1000 luk        

$ loginctl show-session 2 -p Type
# will output
Type=wayland
or
Type=x11
```
---

- [X] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [X] Added/updated tests
- [X] Manual QA for all new/changed functionality
  - For Orbit and Fleet Desktop changes:
- [X] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [x] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
2024-05-16 08:39:30 -03:00
..
execuser.go launch Nudge using /usr/bin/open (#10051) 2023-02-23 14:48:40 -03:00
execuser_darwin.go launch Nudge using /usr/bin/open (#10051) 2023-02-23 14:48:40 -03:00
execuser_linux.go Support Ubuntu 24.04 with Xorg (by detecting user's DISPLAY environment variable) (#18996) 2024-05-16 08:39:30 -03:00
execuser_linux_test.go Support Ubuntu 24.04 with Xorg (by detecting user's DISPLAY environment variable) (#18996) 2024-05-16 08:39:30 -03:00
execuser_windows.go Fix golangci-lint issue and run Github action on all OSs (#9944) 2023-02-21 14:30:45 -03:00
execuser_windows_diff.sh Orbit: Add Fleet Desktop support to Windows (#4873) 2022-04-01 17:28:51 -03:00