diff --git a/orbit/changes/37447-account-for-gdm-greeter b/orbit/changes/37447-account-for-gdm-greeter new file mode 100644 index 0000000000..dea85909e4 --- /dev/null +++ b/orbit/changes/37447-account-for-gdm-greeter @@ -0,0 +1 @@ +* Updated fleetd to ignore the `gdm-greeter` user in GNOME 49 sessions when starting Fleet Desktop. diff --git a/orbit/pkg/user/user_linux.go b/orbit/pkg/user/user_linux.go index 56437f470d..889d5d3621 100644 --- a/orbit/pkg/user/user_linux.go +++ b/orbit/pkg/user/user_linux.go @@ -25,8 +25,10 @@ func UserLoggedInViaGui() (*string, error) { if err != nil { return nil, fmt.Errorf("get login user: %w", err) } + // Bail out if the user is gdm or root, since they aren't GUI users. - if user.Name == "gdm" || user.Name == "root" { + // User gdm-greeter is active during the GUI log-in prompt (GNOME 49). + if user.Name == "gdm" || user.Name == "root" || user.Name == "gdm-greeter" { return nil, nil } // Check if the user has a GUI session.