From 2e5825521d4172c8434385801f2aa8d50c5b7497 Mon Sep 17 00:00:00 2001 From: Ty Smith Date: Mon, 1 Jun 2026 19:30:35 -0700 Subject: [PATCH 1/2] Use GNOME file picker portal for previews in Open/Save dialogs Routes the FileChooser portal to xdg-desktop-portal-gnome so file dialogs use the Nautilus-style picker with sidebar and preview instead of the basic GtkFileChooser shown by xdg-desktop-portal-gtk. Other portal interfaces continue to be served by hyprland and gtk. --- config/xdg-desktop-portal/hyprland-portals.conf | 3 +++ install/omarchy-base.packages | 1 + migrations/1780365321.sh | 8 ++++++++ 3 files changed, 12 insertions(+) create mode 100644 config/xdg-desktop-portal/hyprland-portals.conf create mode 100644 migrations/1780365321.sh diff --git a/config/xdg-desktop-portal/hyprland-portals.conf b/config/xdg-desktop-portal/hyprland-portals.conf new file mode 100644 index 0000000000..0c6960952d --- /dev/null +++ b/config/xdg-desktop-portal/hyprland-portals.conf @@ -0,0 +1,3 @@ +[preferred] +default = hyprland;gtk +org.freedesktop.impl.portal.FileChooser = gnome diff --git a/install/omarchy-base.packages b/install/omarchy-base.packages index 3e68b2f598..9d8b84f7a6 100644 --- a/install/omarchy-base.packages +++ b/install/omarchy-base.packages @@ -145,6 +145,7 @@ wiremix wireplumber wl-clipboard woff2-font-awesome +xdg-desktop-portal-gnome xdg-desktop-portal-gtk xdg-desktop-portal-hyprland xdg-terminal-exec diff --git a/migrations/1780365321.sh b/migrations/1780365321.sh new file mode 100644 index 0000000000..12ba11ec7a --- /dev/null +++ b/migrations/1780365321.sh @@ -0,0 +1,8 @@ +echo "Use GNOME file picker portal for previews in Open/Save dialogs" + +omarchy-pkg-add xdg-desktop-portal-gnome + +mkdir -p ~/.config/xdg-desktop-portal +cp $OMARCHY_PATH/config/xdg-desktop-portal/hyprland-portals.conf ~/.config/xdg-desktop-portal/ + +systemctl --user restart xdg-desktop-portal From 646db0691712191e05cab4658adb9dcf0419ed96 Mon Sep 17 00:00:00 2001 From: Ty Smith Date: Tue, 2 Jun 2026 16:50:26 -0700 Subject: [PATCH 2/2] Use omarchy-refresh-config for portal config copy in migration Replaces the manual mkdir -p + cp with the idiomatic omarchy-refresh-config helper, which creates the target dir, quotes paths, and makes a timestamped backup before overwriting so any existing user customizations are preserved. Addresses Copilot review feedback on PR #6019. Co-Authored-By: Claude Opus 4.8 (1M context) --- migrations/1780365321.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/migrations/1780365321.sh b/migrations/1780365321.sh index 12ba11ec7a..98bca2db05 100644 --- a/migrations/1780365321.sh +++ b/migrations/1780365321.sh @@ -2,7 +2,6 @@ echo "Use GNOME file picker portal for previews in Open/Save dialogs" omarchy-pkg-add xdg-desktop-portal-gnome -mkdir -p ~/.config/xdg-desktop-portal -cp $OMARCHY_PATH/config/xdg-desktop-portal/hyprland-portals.conf ~/.config/xdg-desktop-portal/ +omarchy-refresh-config xdg-desktop-portal/hyprland-portals.conf systemctl --user restart xdg-desktop-portal