[neon/snap-packaging/plasma-core-desktop-snap] hooks: Remove extra backends for discover, we are only interested in snap.
Scarlett Moore
null at kde.org
Tue Apr 30 17:07:25 BST 2024
Git commit 0bcad3c4166a7badaedef99ef2167667f76e2281 by Scarlett Moore.
Committed on 30/04/2024 at 16:06.
Pushed by scarlettmoore into branch 'master'.
Remove extra backends for discover, we are only interested in snap.
M +13 -0 hooks/006-zzz-add-plasma-session.chroot
https://invent.kde.org/neon/snap-packaging/plasma-core-desktop-snap/-/commit/0bcad3c4166a7badaedef99ef2167667f76e2281
diff --git a/hooks/006-zzz-add-plasma-session.chroot b/hooks/006-zzz-add-plasma-session.chroot
index 3391699..428ee0b 100755
--- a/hooks/006-zzz-add-plasma-session.chroot
+++ b/hooks/006-zzz-add-plasma-session.chroot
@@ -69,6 +69,19 @@ rm -f /usr/share/xsessions/plasmax11.desktop
rm /usr/share/dbus-1/services/org.freedesktop.impl.portal.desktop.kde.service
rm /usr/lib/systemd/user/plasma-xdg-desktop-portal-kde.service
+# Remove extra backends for discover.
+rm /usr/lib/x86_64-linux-gnu/qt6/plugins/discover/packagekit-backend.so
+rm /usr/lib/x86_64-linux-gnu/qt6/plugins/discover/flatpak-backend.so
+rm /usr/lib/x86_64-linux-gnu/qt6/plugins/discover-notifier/FlatpakNotifier.so
+rm /usr/share/applications/org.kde.discover-flatpak.desktop
+rm -rf /usr/share/doc/plasma-discover-backend-flatpak/*
+rm /usr/share/icons/hicolor/scalable/apps/flatpak-discover.svg
+rm /usr/lib/x86_64-linux-gnu/qt6/plugins/discover/fwupd-backend.so
+rm -rf /usr/share/doc/plasma-discover-backend-fwupd/*
+rm /usr/lib/x86_64-linux-gnu/qt6/plugins/discover/kns-backend.so
+rm /usr/share/metainfo/org.kde.discover.flatpak.appdata.xml
+rm /usr/share/metainfo/org.kde.discover.packagekit.appdata.xml
+
cat >/etc/xdg/startkderc<<EOF
[General]
systemdBoot=false
More information about the Neon-commits
mailing list