How to switch between Gamescope and GNOME sessions without login screen on Fedora 42?

Hi everyone,

I’m using Fedora 42 Workstation with GNOME and GDM as the login manager. I’ve created a dedicated Wayland session for gaming called gamescope-session-steam.desktop under /usr/share/wayland-sessions/. The purpose of this session is to login directly to Gamescope (Steam).

Currently:

  • From the login screen, I can select either GNOME or Gamescope and log in successfully.

  • While in Gamescope (Steam), the menu option “Switch to desktop” calls /usr/bin/steamos-session-select.

  • Right now, the script only does steam -shutdown and returns me to the login screen.

What I want to achieve:

  • From Gamescope, selecting “Switch to desktop” should take me directly to my GNOME session.

  • From GNOME, running steamos-session-select gamescope should switch directly to the Gamescope session.

  • This should not prompt for a password or show the login screen.

  • I have already set AutomaticLoginEnable=true for my user in /etc/gdm/custom.conf.

I have looked at other systems like Bazzite and Nobara, but I haven’t been able to successfully replicate their approach on Fedora.

Has anyone implemented direct session switching like this on Fedora? I would really appreciate it if someone could share their script or method to achieve this.

Thanks in advance!

1 Like