How to Disable/Hide GNOME sessions?

Hello, I have installed GNOME, but in SDDM it shows 4 different GNOME sessions:

  • GNOME
  • GNOME on Xorg
  • GNOME (Wayland)
  • GNOME on Wayland

I would like to hide the 1st and 3rd sessions, as they are redundant.

I have searched a lot but am unable to achieve this result… Hopefully its possible.

My dots: GitHub - Aman9das/zaneyos

1 Like

Did you find out what files SDDM reads to populate this list?

Yes! It’s like this:

/nix/store/h93wcy1pf6yg8id76nwbv4g7sj8y9hzx-desktops/share
β”œβ”€β”€ wayland-sessions
β”‚   β”œβ”€β”€ gnome.desktop -> /nix/store/p0i3ghab5bhhm5k8w1sn52jl5brc6s6h-gnome-session-46.0-sessions/share/wayland-sessions/gnome.desktop
β”‚   β”œβ”€β”€ gnome-wayland.desktop -> /nix/store/p0i3ghab5bhhm5k8w1sn52jl5brc6s6h-gnome-session-46.0-sessions/share/wayland-sessions/gnome-wayland.desktop
β”‚   β”œβ”€β”€ hyprland.desktop -> /nix/store/wgvf152p6xcdca1ndy0vng7gmafypy8c-hyprland-0.41.2/share/wayland-sessions/hyprland.desktop
β”‚   └── steam.desktop -> /nix/store/g95xps91b10klgzi6g100mnf54j73kkk-steam.desktop/share/wayland-sessions/steam.desktop
└── xsessions
    β”œβ”€β”€ gnome.desktop -> /nix/store/p0i3ghab5bhhm5k8w1sn52jl5brc6s6h-gnome-session-46.0-sessions/share/xsessions/gnome.desktop
    └── gnome-xorg.desktop -> /nix/store/p0i3ghab5bhhm5k8w1sn52jl5brc6s6h-gnome-session-46.0-sessions/share/xsessions/gnome-xorg.desktop

How to remove both the gnome.desktop files?