From 8b68d42d7f44ebab357757ccb5e04eb284a43e2e Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Sun, 28 Feb 2021 23:44:01 -0500 Subject: [PATCH] Add trigger to auto-transition to Wayland session on upgrade to F34 --- sddm.spec | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/sddm.spec b/sddm.spec index 48b9b9e..a475c4a 100644 --- a/sddm.spec +++ b/sddm.spec @@ -9,7 +9,7 @@ Name: sddm Version: 0.19.0 -Release: 7%{?dist} +Release: 8%{?dist} License: GPLv2+ Summary: QML based X11 desktop manager @@ -178,6 +178,16 @@ if [ -f %{_sharedstatedir}/sddm/state.conf ]; then -e "s|%{_datadir}/wayland-sessions/plasmawayland.desktop|%{_datadir}/wayland-sessions/plasma.desktop|g" \ -i %{_sharedstatedir}/sddm/state.conf fi + +%triggerun -- fedora-release < 34 +# When upgrading to Fedora 34, transition to Plasma Wayland by default +if [ -f %{_sharedstatedir}/sddm/state.conf ]; then + sed \ + -e "s|%{_datadir}/xsessions/plasma.desktop|%{_datadir}/wayland-sessions/plasma.desktop|g" \ + -e "s|%{_datadir}/xsessions/plasmax11.desktop|%{_datadir}/wayland-sessions/plasma.desktop|g" \ + -e "s|%{_datadir}/wayland-sessions/plasmawayland.desktop|%{_datadir}/wayland-sessions/plasma.desktop|g" \ + -i %{_sharedstatedir}/sddm/state.conf +fi %endif %preun @@ -225,6 +235,9 @@ fi %changelog +* Sun Feb 28 2021 Neal Gompa - 0.19.0-8 +- Add trigger to auto-transition to Wayland session on upgrade to F34 + * Wed Feb 03 2021 Rex Dieter - 0.19.0-7 - adjust perms on /run/sddm to 1733 to future-proof xauth handling (#1922772)