-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove suffix for Wayland session #997
Conversation
I agree, but keeping backwards-compat in mind: How hard would it be to still apply the suffix if a conflicting session already exists? |
@Vogtinator What's a conflicting session? |
Current Plasma releases have plasma.desktop and plasmawayland.desktop which both have See also https://phabricator.kde.org/D22210 |
This seems like the right approach to me, and then the session itself becomes responsible for having an accurate name. What's blocking this? |
Me. We need to fix Plasma first. We should have done it for 5.17, that's arguably my fault, sorry. I'll make sure we do for Plasma 5.18. |
I think it is enough to make distro packagers aware through mail/changelog, no need for workarounds. We patch stuff now, we'll patch stuff in the meantime until it fits by default. |
Summary: SDDM until 0.18.1 appends " (Wayland)" to the name of any session file it finds in wayland-sessions dir, and Plasma is relying on that behaviour to distinguish between its X11 and Wayland sessions. This leads to duplicate "Plasma" entries on any other DM not applying the same hack, e.g. lightdm, and users are lost without downstream patching. SDDM in 0.19 only appends " (Wayland)" in case the session name does not already end with this, to avoid duplicating it. CCBUG: https://bugs.kde.org/show_bug.cgi?id=368409 See also: sddm/sddm#997 Reviewers: #plasma, davidedmundson, fvogt, ngraham Reviewed By: #plasma, davidedmundson, fvogt, ngraham Subscribers: ngraham, pino, rdieter, fvogt, davidedmundson, plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D22210
Summary: I just switched to openSUSE Tumbleweed and noticed that the session names in SDDM's chooser don't include "X11" or "Wayland" like they do in other distros I've used before. This makes it impossible to tell which one you're going to boot into. This patch adds those identifiers into the translated string so it's always clear. Ideally sddm/sddm#997 would get done first, but even it it doesn't, it's no big deal. Reviewers: fvogt, davidedmundson, apol, #plasma Reviewed By: davidedmundson, #plasma Subscribers: fvogt, plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D24666
Some desktops like GNOME specify which windowing system is in use with the Name entry of their desktop file. Plasma is also headed in that direction. For Wayland-only desktops such as Liri this information is redundant and so is for X11-only window managers. Do not append the Wayland suffix and let desktops handle it themeselves. However if two sessions has the same display name we deduplicate appending an indicator to the Wayland counterpart, this helps Plasma during the transition to removing the session type from their display name. [ChangeLog][Greeter] Remove suffix for Wayland sessions and deduplicate display names.
Quick fix to deduplicate name, don't have time to even test this right now. |
That should help you with your transition, |
Basically what I requested a few comments above, yay. Code looks good, but I didn't test it yet either. |
Exactly that |
@plfiorini @davidedmundson ping? Could this be rebased and merged? With Plasma 5.18 and 5.19, we now have this ugly |
That was already taken care of with #1202 though. |
Welp... Thanks @Vogtinator! |
This patch is different: it adds the Wayland suffix only when there are more than one sessions with the same name. |
With this patch, it won't be |
I was under the impression that Plasma had changed their desktop entry name removing Wayland. |
https://phabricator.kde.org/D22210 got merged, so |
Some desktops like GNOME specify which windowing system is in use with the Name entry of their desktop file. Plasma is also headed in that direction. For Wayland-only desktops such as Liri this information is redundant and so is for X11-only window managers. Do not append the Wayland suffix and let desktops handle it themeselves. However if two sessions has the same display name we deduplicate appending an indicator to the Wayland counterpart, this helps Plasma during the transition to removing the session type from their display name. [ChangeLog][Greeter] Remove suffix for Wayland sessions and deduplicate display names.
Some desktops like GNOME specify which windowing system is in use with the Name entry of their desktop file. Plasma is also headed in that direction. For Wayland-only desktops such as Liri this information is redundant and so is for X11-only window managers. Do not append the Wayland suffix and let desktops handle it themeselves. However if two sessions has the same display name we deduplicate appending an indicator to the Wayland counterpart, this helps Plasma during the transition to removing the session type from their display name. [ChangeLog][Greeter] Remove suffix for Wayland sessions and deduplicate display names.
Some desktops like GNOME specify which windowing system is in use with the Name entry of their desktop file. Plasma is also headed in that direction. For Wayland-only desktops such as Liri this information is redundant and so is for X11-only window managers. Do not append the Wayland suffix and let desktops handle it themeselves. However if two sessions has the same display name we deduplicate appending an indicator to the Wayland counterpart, this helps Plasma during the transition to removing the session type from their display name. [ChangeLog][Greeter] Remove suffix for Wayland sessions and deduplicate display names.
Some desktops like GNOME specify which windowing system is in use with the Name entry of their desktop file. Plasma is also headed in that direction. For Wayland-only desktops such as Liri this information is redundant and so is for X11-only window managers. Do not append the Wayland suffix and let desktops handle it themeselves. However if two sessions has the same display name we deduplicate appending an indicator to the Wayland counterpart, this helps Plasma during the transition to removing the session type from their display name. [ChangeLog][Greeter] Remove suffix for Wayland sessions and deduplicate display names.
Some desktops like GNOME specify which windowing system is in use
with the Name entry of their desktop file.
For Wayland-only desktops such as Liri this information is
redundant and so is for X11-only window managers.
Do not append the Wayland suffix and let desktops handle it
themeselves.
[ChangeLog][Greeter] Remove suffix for Wayland sessions