Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#79858 - [gnome-shell-extensions] Duplicate desktop environment entries for wayland/xserver

Attached to Project: Arch Linux
Opened by Jason Khanlar (jkhanlar) - Thursday, 05 October 2023, 06:25 GMT
Last edited by Jan Alexander Steffens (heftig) - Thursday, 05 October 2023, 08:09 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: Why do gnome and gnome-classic have two entries for both wayland/X instead of just one entry for each?

There are 4 wayland entries for each of 2 "gnome classic" and "gnome" and 4 xserver entries for each of 2 "gnome classic" and "gnome" for a total of 8 entries.

/usr/share/wayland-sessions/gnome-classic.desktop
/usr/share/wayland-sessions/gnome-classic-wayland.desktop
/usr/share/wayland-sessions/gnome.desktop
/usr/share/wayland-sessions/gnome-wayland.desktop

and

/usr/share/xsessions/gnome-classic.desktop
/usr/share/xsessions/gnome-classic-xorg.desktop
/usr/share/xsessions/gnome.desktop
/usr/share/xsessions/gnome-xorg.desktop

repeating those again but with more verbose informations for each:

/usr/share/wayland-sessions/gnome-classic.desktop
Name=GNOME Classic
Comment=This session logs you into GNOME Classic
Exec=env GNOME_SHELL_SESSION_MODE=classic gnome-session
TryExec=gnome-session
Type=Application
DesktopNames=GNOME-Classic;GNOME;
X-GDM-SessionRegisters=true
/usr/share/wayland-sessions/gnome-classic-wayland.desktop
Name=GNOME Classic on Wayland
Comment=This session logs you into GNOME Classic
Exec=env GNOME_SHELL_SESSION_MODE=classic gnome-session
TryExec=gnome-session
Type=Application
DesktopNames=GNOME-Classic;GNOME;
X-GDM-SessionRegisters=true
/usr/share/wayland-sessions/gnome.desktop
Name=GNOME
Comment=This session logs you into GNOME
Exec=/usr/bin/gnome-session
TryExec=/usr/bin/gnome-session
Type=Application
DesktopNames=GNOME
X-GDM-SessionRegisters=true
/usr/share/wayland-sessions/gnome-wayland.desktop
Name=GNOME on Wayland
Comment=This session logs you into GNOME
Exec=/usr/bin/gnome-session
TryExec=/usr/bin/gnome-session
Type=Application
DesktopNames=GNOME
X-GDM-SessionRegisters=true

/usr/share/xsessions/gnome-classic.desktop
Name=GNOME Classic
Comment=This session logs you into GNOME Classic
Exec=env GNOME_SHELL_SESSION_MODE=classic gnome-session
TryExec=gnome-session
Type=Application
DesktopNames=GNOME-Classic;GNOME;
X-GDM-SessionRegisters=true
/usr/share/xsessions/gnome-classic-xorg.desktop
Name=GNOME Classic on Xorg
Comment=This session logs you into GNOME Classic
Exec=env GNOME_SHELL_SESSION_MODE=classic gnome-session
TryExec=gnome-session
Type=Application
DesktopNames=GNOME-Classic;GNOME;
X-GDM-SessionRegisters=true
/usr/share/xsessions/gnome.desktop
Name=GNOME
Comment=This session logs you into GNOME
Exec=/usr/bin/gnome-session
TryExec=/usr/bin/gnome-session
Type=Application
DesktopNames=GNOME
X-GDM-SessionRegisters=true
/usr/share/xsessions/gnome-xorg.desktop
Name=GNOME on Xorg
Comment=This session logs you into GNOME
Exec=/usr/bin/gnome-session
TryExec=/usr/bin/gnome-session
Type=Application
DesktopNames=GNOME
X-GDM-SessionRegisters=true

Basically:
- these two seem to be the exact same thing:
- /usr/share/wayland-sessions/gnome-classic.desktop
- /usr/share/wayland-sessions/gnome-classic-wayland.desktop
- these two seem to be the exact same thing:
- /usr/share/wayland-sessions/gnome.desktop
- /usr/share/wayland-sessions/gnome-wayland.desktop
- these two seem to be the exact same thing:
- /usr/share/xsessions/gnome-classic.desktop
- /usr/share/xsessions/gnome-classic-xorg.desktop
- these two seem to be the exact same thing:
- /usr/share/xsessions/gnome.desktop
- /usr/share/xsessions/gnome-xorg.desktop


Additional info:
* package version(s): extra/gnome-shell-extensions v44.0-1
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:

`pacman -S gnome-shell-extensions`
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Thursday, 05 October 2023, 08:09 GMT
Reason for closing:  Not a bug
Additional comments about closing:  See comments.
Comment by Jason Khanlar (jkhanlar) - Thursday, 05 October 2023, 06:27 GMT Comment by Toolybird (Toolybird) - Thursday, 05 October 2023, 07:04 GMT
The main entries come from the "gnome-session" pkg. The "classic" entries are from the "gnome-shell-extensions" pkg. Arch doesn't do anything special here in the PKGBUILDs for either pkg. That's just how it comes from upstream. Please direct your query upstream and/or to the Arch support channels because this is not an Arch packaging issue.
Comment by Jan Alexander Steffens (heftig) - Thursday, 05 October 2023, 08:09 GMT
This isn't an upstream bug, either. The duplicate sessions (gnome-xorg.desktop and gnome-wayland.desktop) exist to let the user explicitly override the automatic choice done by the normal session (gnome.desktop), where it is expected that the DM only shows a single entry, picking either the X or the Wayland version.

Loading...