15-tools: strata --install-portal makes strata the portal file chooser

This commit is contained in:
Prad Nukala committed 2026-10-17 13:27:33 -04:00
1 parent 099e0476b3
commit cdd0ee07ed
3 files changed
+14 -1

No files matched your search

@@ -55,4 +55,14 @@ fi
if [ ! -e "$HOME/.local/bin/strata" ]; then
curl -fsSL https://raw.githubusercontent.com/lgse/strata/main/install.sh | bash -s -- --with-desktop-entry --with-file-manager
fi
# System file chooser: strata serves org.freedesktop.impl.portal.FileChooser
# for portal-aware apps (browsers, GTK). --install-portal writes the .portal
# and D-Bus service under ~/.local/share, prepends "strata;" to the
# FileChooser line of ~/.config/xdg-desktop-portal/<desktop>-portals.conf
# (copied from the system one if absent; strata owns that file, not chezmoi,
# so `strata --uninstall-portal` can restore it), and restarts the portal.
if [ -e "$HOME/.local/bin/strata" ] && [ ! -e "${XDG_DATA_HOME:-$HOME/.local/share}/xdg-desktop-portal/portals/strata.portal" ]; then
"$HOME/.local/bin/strata" --install-portal
fi
{{- end }}