Hello community, here is the log from the commit of package plasma5-session for openSUSE:Factory checked in at 2016-05-08 10:41:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/plasma5-session (Old) and /work/SRC/openSUSE:Factory/.plasma5-session.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "plasma5-session" Changes: -------- --- /work/SRC/openSUSE:Factory/plasma5-session/plasma5-session.changes 2016-04-12 19:07:13.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.plasma5-session.new/plasma5-session.changes 2016-05-08 10:41:13.000000000 +0200 @@ -1,0 +2,11 @@ +Wed May 4 13:32:39 UTC 2016 - wbauer@tmo.at + +- Reset the DEFAULT_WM value in %post for KDE upgrade compatibility, + script taken from kdebase4-session (boo#978454) + +------------------------------------------------------------------- +Tue Apr 19 20:43:45 UTC 2016 - hrvoje.senjan@gmail.com + +- Bump to 5.6.3 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ plasma5-session.spec ++++++ --- /var/tmp/diff_new_pack.GKZgaA/_old 2016-05-08 10:41:13.000000000 +0200 +++ /var/tmp/diff_new_pack.GKZgaA/_new 2016-05-08 10:41:13.000000000 +0200 @@ -17,7 +17,7 @@ Name: plasma5-session -Version: 5.6.2 +Version: 5.6.3 Release: 0 Summary: The KDE Session License: GPL-2.0+ @@ -94,6 +94,23 @@ install -D -m644 %{SOURCE2} %{buildroot}%{_datadir}/doc/packages/plasma5-session-wayland/COPYING %endif +%post +# Reset the DEFAULT_WM value for KDE upgrade compatibility +if [ -f /etc/sysconfig/windowmanager ]; then + OLD_DEFAULTWM=`grep "DEFAULT_WM" /etc/sysconfig/windowmanager | cut -d '=' -f 2 | cut -d '"' -f 2` +fi + +if [ -f /var/adm/fillup-templates/sysconfig.windowmanager ]; then + TEMPLATE_DEFAULTWM=`grep "DEFAULT_WM" /var/adm/fillup-templates/sysconfig.windowmanager | cut -d '=' -f 2 | cut -d '"' -f 2` +fi + +# Check the old DEFAULT_WM and whether current DEFAULT_WM exists +if [ "$OLD_DEFAULTWM" = "startkde4" ] || [ "$OLD_DEFAULTWM" = "startkde" ] || [ "$OLD_DEFAULTWM" = "kde4" ]; then + if [ -n "$TEMPLATE_DEFAULTWM" ] && [ "$OLD_DEFAULTWM" != "$TEMPLATE_DEFAULTWM" ]; then + sed -i -e "s/^DEFAULT_WM=['\"]\?kde.*/DEFAULT_WM=\"${TEMPLATE_DEFAULTWM}\"/g" /etc/sysconfig/windowmanager + fi +fi + %files %defattr(-,root,root) %{_datadir}/xsessions/plasma5.desktop