Commit e9fe67e9 authored by Boria138's avatar Boria138 Committed by Vitaly Lipatov

epm play: install xdg-desktop-portal backends for flatpak (eterbug #17245)

parent 096670ce
......@@ -11,10 +11,34 @@ assure_root
# Мсправляет ошибку "enabling unprivileged user namespaces" без перезагрузки
a= sysctl -w kernel.unprivileged_userns_clone=1
install_portals=""
while read -r window_manager package ; do
if epm installed $window_manager </dev/null ; then
install_portals+=" $package"
fi
done <<EOF
plasma5-kwin plasma5-xdg-desktop-portal-kde
deepin-kwin2 xdg-desktop-portal-dde
gnome-shell xdg-desktop-portal-gnome
xfwm4 xdg-desktop-portal-gtk
mate-window-manager xdg-desktop-portal-gtk
sway xdg-desktop-portal-wlr
hyprland xdg-desktop-portal-hyprland
muffin xdg-desktop-portal-xapp
liblxqt xdg-desktop-portal-lxqt
lxde-common xdg-desktop-portal-gtk
EOF
epm install --skip-installed $install_portals xdg-desktop-portal
epm install flatpak flatpak-repo-flathub sysctl-conf-userns
if epm installed plasma5-discover ; then
epm install plasma5-discover-flatpak
fi
# Без перезагрузки dbus, порталы не заработают
a= systemctl try-reload-or-restart dbus
echo "Flatpak successfully installed, but epm play is the preferred way to install the software."
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment