feat: add portal host override script and update portal configuration

This commit is contained in:
2026-02-28 23:09:29 +01:00
parent e8a548bbad
commit 046f2c3e95
4 changed files with 45 additions and 7 deletions
+30
View File
@@ -0,0 +1,30 @@
# Hyprland Dotfiles (portable portal setup)
Diese Konfiguration ist für den Einsatz via `stow` auf unterschiedlichen Systemen vorbereitet.
## Portal-Backends
Die Portal-Priorität steht in `.config/xdg-desktop-portal/portals.conf` auf:
- `hyprland` für Hyprland-spezifische Portale
- `gtk` als primärer, host-unabhängiger Backend für OpenURI/FileChooser/Settings
- `kde` als Fallback
Damit funktioniert der Dateizuordnungs-Dialog auch ohne komplette GNOME- oder KDE-Session.
## Host-Override
`.config/hypr/scripts/portal-host-override.sh` setzt `XDG_MENU_PREFIX=plasma-` nur dann,
wenn KDE-Portal + Plasma-Menüdatei vorhanden sind. Ohne diese Voraussetzungen wird nichts erzwungen.
## Pakete auf Zielsystemen
Empfohlen (mindestens):
- `xdg-desktop-portal`
- `xdg-desktop-portal-hyprland`
- `xdg-desktop-portal-gtk`
Optional (Fallback):
- `xdg-desktop-portal-kde`