Gnome-shell-ubuntu-extensions drags in X11 server to 26.04 (Resolute Raccoon)

After upgrading from Ubuntu Destop (GNOME) 24.04 to 26.04, I expected to have a mostly X11-free environment, however it appears that the Ubuntu package of collected GNOME Shell extensions - gnome-shell-ubuntu-extensions - adds several X11 dependencies.

$ sudo apt autoremove --purge gnome-shell-ubuntu-extensions 
REMOVING:                       
  gir1.2-gnomeautoar-0.1*         liboeffis1*  ubuntu-session*  xwayland*
  gir1.2-gnomedesktop-3.0*        libxcvt0*    xfonts-base*
  gnome-shell-ubuntu-extensions*  libxfont2*   xserver-common*

While I understand the purpose of XWayland, this seems an unlikely dependency for a GNOME on Wayland desktop environment. How come a collection of text files are introducing a dependency on an X11 server?

The presence of a package named ubuntu-session in the dependencies adds a little trepidation to removal of what are - or should be - only extensions to GNOME Shell.

Note that a majority of applications is not wayland capable, they do need XWayland to be able to run at all …

1 Like

The trepidation was warranted. Removing ubuntu-session, restarting gdm.service, and logging in from the greeter resulted in a brief pause followed by a return to the greeter.
Reinstalling ubuntu-session unsurprisingly installed the rest of those packages as dependencies.

So noted, with the matter of “a majority” not needing to be addressed.

What is not an application and does not need XWayland [citation needed?] is any of the bundled GNOME Shell extensions.