[neon/snap-packaging/plasma-core-desktop] hooks: Kill the qxdgdesktopportal plugin

Kevin Ottens null at kde.org
Thu Aug 8 23:48:06 BST 2024


Git commit 973d153f90e06dac8e55473d06b30d465f33e4c9 by Kevin Ottens.
Committed on 08/08/2024 at 22:04.
Pushed by ervin into branch 'master'.

Kill the qxdgdesktopportal plugin

This will once and for all prevent components of the session to talk to
xdg-desktop-portal. Only separately snapped apps should go through it.

M  +4    -0    hooks/006-add-plasma-session.chroot

https://invent.kde.org/neon/snap-packaging/plasma-core-desktop/-/commit/973d153f90e06dac8e55473d06b30d465f33e4c9

diff --git a/hooks/006-add-plasma-session.chroot b/hooks/006-add-plasma-session.chroot
index fc55abf..cadf84e 100755
--- a/hooks/006-add-plasma-session.chroot
+++ b/hooks/006-add-plasma-session.chroot
@@ -123,6 +123,10 @@ rm -f /usr/lib/systemd/user/org.freedesktop.IBus.session.generic.service
 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 the XDG desktop portal platform theme, components
+# of the session must not go through it
+rm /usr/lib/x86_64-linux-gnu/qt6/plugins/platformthemes/libqxdgdesktopportal.so
+
 # ubuntu init uses AccountsService to create the user account.
 # AccountsService in turn calls /usr/sbin/adduser.  Replace that
 # script with a wrapper that adds the --extrausers argument.



More information about the Neon-commits mailing list