force plasma's obsolete_kickoffrc.js to run again

epel9
Rex Dieter 9 years ago
parent 57f02c836e
commit fa98649344

@ -0,0 +1,10 @@
#!/bin/sh
if [ "`kreadconfig5 --file fedora-obsolete_kickoffrc --group 5.5.0-1 --key FirstRun --default true`" = "true" ]; then
sed -i \
-e 's|=/usr/share/plasma/shells/org.kde.plasma.desktop/contents/updates/obsolete_kickoffrc.js||g' \
-e 's|,/usr/share/plasma/shells/org.kde.plasma.desktop/contents/updates/obsolete_kickoffrc.js||g' \
`kf5-config --path config --locate plasmashellrc` && \
kwriteconfig5 --file fedora-obsolete_kickoffrc --group 5.5.0-1 --key FirstRun --type bool false
fi

@ -4,7 +4,7 @@
Name: plasma-desktop Name: plasma-desktop
Summary: Plasma Desktop shell Summary: Plasma Desktop shell
Version: 5.5.0 Version: 5.5.0
Release: 2%{?dist} Release: 3%{?dist}
License: GPLv2+ and (GPLv2 or GPLv3) License: GPLv2+ and (GPLv2 or GPLv3)
URL: https://projects.kde.org/projects/kde/workspace/plasma-desktop URL: https://projects.kde.org/projects/kde/workspace/plasma-desktop
@ -28,6 +28,8 @@ Patch101: plasma-desktop-5.4.0-default_favorites_f22.patch
Patch102: plasma-desktop-fedora_layout.patch Patch102: plasma-desktop-fedora_layout.patch
## upstream patches ## upstream patches
# along with patch8, force plasma's obsolete_kickoff.js to run again
Source8: fedora-obsolete_kickoffrc-5.5.0-1.sh
Patch8: 0008-Fix-migration-of-multiple-favorites.patch Patch8: 0008-Fix-migration-of-multiple-favorites.patch
## upstreamable patches ## upstreamable patches
@ -160,7 +162,8 @@ BuildArch: noarch
%prep %prep
%setup -q %setup -q
%patch8 -p1 -b .0008 # no backups
%patch8 -p1
%if 0%{?fedora} > 22 %if 0%{?fedora} > 22
%patch100 -p1 -b .default_favorites %patch100 -p1 -b .default_favorites
@ -169,8 +172,8 @@ BuildArch: noarch
%endif %endif
%patch102 -p1 -b .fedora_layout %patch102 -p1 -b .fedora_layout
%build
%build
mkdir %{_target_platform} mkdir %{_target_platform}
pushd %{_target_platform} pushd %{_target_platform}
%{cmake_kf5} .. %{cmake_kf5} ..
@ -195,6 +198,9 @@ cp %{buildroot}%{_datadir}/konqsidebartng/virtual_folders/services/fonts.desktop
# per https://techbase.kde.org/KDE_System_Administration/PlasmaTwoDesktopScripting#Running_Scripts # per https://techbase.kde.org/KDE_System_Administration/PlasmaTwoDesktopScripting#Running_Scripts
mkdir -p %{buildroot}{_datadir}/plasma/shells/org.kde.plasma.desktop/updates/ mkdir -p %{buildroot}{_datadir}/plasma/shells/org.kde.plasma.desktop/updates/
# force plasma's obsolete_kickoffrc.js to run again (it was broken in initial 5.5.0-1)
install -m644 -p -D %{SOURCE8} %{buildroot}%{_sysconfdir}/xdg/plasma-workspace/env/fedora-obsolete_kickoffrc-5.5.0-1.sh
## unpackaged files ## unpackaged files
rm -rfv %{buildroot}%{_datadir}/kdm/pics/users/ rm -rfv %{buildroot}%{_datadir}/kdm/pics/users/
@ -219,6 +225,8 @@ fi
%files -f plasmadesktop5.lang %files -f plasmadesktop5.lang
%license COPYING* %license COPYING*
# hack/workaround for bug #1289709
%{_sysconfdir}/xdg/plasma-workspace/env/fedora-obsolete_kickoffrc-5.5.0-1.sh
%if 0%{?fedora} > 20 %if 0%{?fedora} > 20
%{_bindir}/kapplymousetheme %{_bindir}/kapplymousetheme
%endif %endif
@ -304,6 +312,9 @@ fi
%lang(uk) %{_docdir}/HTML/uk/plasma-desktop/ %lang(uk) %{_docdir}/HTML/uk/plasma-desktop/
%changelog %changelog
* Tue Dec 08 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-3
- force plasma's obsolete_kickoffrc.js to run again
* Tue Dec 08 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-2 * Tue Dec 08 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-2
- backport favorites migration fix (#1289709) - backport favorites migration fix (#1289709)

Loading…
Cancel
Save