Notification time stamped 2021-03-01 04:50:22 UTC
From 8b68d42d7f44ebab357757ccb5e04eb284a43e2e Mon Sep 17 00:00:00 2001
From: Neal Gompa <ngompa13(a)gmail.com>
Date: Mar 01 2021 04:44:01 +0000
Subject: Add trigger to auto-transition to Wayland session on upgrade to F34
---
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 <ngompa13(a)gmail.com> - 0.19.0-8
+- Add trigger to auto-transition to Wayland session on upgrade to F34
+
* Wed Feb 03 2021 Rex Dieter <rdieter(a)fedoraproject.org> - 0.19.0-7
- adjust perms on /run/sddm to 1733 to future-proof xauth handling (#1922772)
https://src.fedoraproject.org/rpms/sddm/c/8b68d42d7f44ebab357757ccb5e04eb...