On Thu, Nov 6, 2025 at 4:43 AM Johannes Schauer Marin Rodrigues <[email protected]> wrote: > > Another alternative is for the Reform desktop to set a custom > > XDG_CURRENT_DESKTOP. For instance, Ubuntu has an Ubuntu session (with > > /usr/share/gnome-session/sessions/ubuntu.session and > > /usr/share/wayland-sessions/ubuntu.desktop) that makes use of a GNOME > > Shell feature (GNOME Shell session mode) to set XDG_CURRENT_DESKTOP to > > ubuntu:GNOME. Then things like xdg-terminal-exec and gsettings > > overrides can be set for Ubuntu without touching GNOME. It also > > inherits GNOME settings (unless overriden by Ubuntu settings). This > > might be complex to set up but there are some advantages if it can be > > made to work. > > Oh interesting, I did not know about this mechanism and it might be > interesting > to explore this independent of where sway-xdg-terminals.list ends up living. > > I've searched for both files you mentioned to learn how it is done but they > seem to be not part of Debian? Are they ubuntu-only?
Yes, the Ubuntu sessions aren't in Debian directly. You can see the extra files by clicking the patch link in the Ubuntu section of https://tracker.debian.org/pkg/gnome-session or there is an ubuntu/latest branch in the Salsa repo. An important detail is that the session file (as in /usr/share/wayland-sessions/ ) should have a DesktopNames field. This is briefly mentioned in https://specifications.freedesktop.org/desktop-entry/latest-single/#key-onlyshowin It looks like sway.desktop already has DesktopNames=sway;wlroots The ubuntu-session .deb package has these files of interest: ubuntu-session: /usr/lib/systemd/user/[email protected]/gnome.session.conf ubuntu-session: /usr/share/gnome-session/sessions/ubuntu.session ubuntu-session: /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf ubuntu-session: /usr/share/wayland-sessions/ubuntu.desktop Ignore what I said about the GNOME Shell modes. I think the DesktopNames field is probably the most important part of how to implement this and then you'd need to add appropriate desktop session files if you wanted a custom session that inherits from sway. > I am (positively) surprised you found this file-conflict-waiting-to-happen. > How > did you get note of it? reform-tools is unable to migrate out of Ubuntu resolute-proposed. See https://launchpad.net/bugs/2130660 for how I think it should be handled at this point. On that day, reform-tools had just been uploaded so it was also showing at the top of https://ubuntu-archive-team.ubuntu.com/proposed-migration/update_excuses.html Thanks, Jeremy Bícha

