mirror of
https://github.com/fleetdm/fleet
synced 2026-05-21 07:58:31 +00:00
> 📜 Related issue: https://github.com/fleetdm/fleet/issues/14698 # Checklist for submitter If some of the following don't apply, delete the relevant line. <!-- Note that API documentation changes are now addressed by the product design team. --> - [x] Changes file added for user-visible changes in `changes/` or `orbit/changes/`. See [Changes files](https://fleetdm.com/docs/contributing/committing-changes#changes-files) for more information. - [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)).
11 lines
382 B
Go
11 lines
382 B
Go
//go:build !darwin
|
|
// +build !darwin
|
|
|
|
package user
|
|
|
|
// IsUserLoggedInViaGui returns whether or not a user is logged into the machine via the GUI. This
|
|
// function is only relevant on MacOS, where it is used to prevent errors when launching Fleet
|
|
// Desktop. We assume yes (effectively a no-op) on all other platforms.
|
|
func IsUserLoggedInViaGui() (bool, error) {
|
|
return true, nil
|
|
}
|