From 554c308f52abc1057efa3c77416ba0ef79b7d3c4 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Mon, 23 Feb 2026 20:39:57 +0100 Subject: Fix hyprland showing gtk filepicker instead of nautilus for sys apps --- roles/hyprland/tasks/main.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/roles/hyprland/tasks/main.yml b/roles/hyprland/tasks/main.yml index bd0d9f80..6bd6eb82 100644 --- a/roles/hyprland/tasks/main.yml +++ b/roles/hyprland/tasks/main.yml @@ -12,7 +12,7 @@ - "hyprsunset" - "hyprshot" - "hyprland" - - "xdg-desktop-portal-gtk" + - "xdg-desktop-portal-gnome" - "xdg-desktop-portal-hyprland" - name: "Ensure hyprland AUR packages are installed" @@ -104,6 +104,22 @@ # System defaults source = /etc/hypr/hypridle.conf +- name: "Configure xdg-desktop-portal for Hyprland" + block: + - name: "Create xdg-desktop-portal config directory" + ansible.builtin.file: + path: "{{ ansible_facts['env']['HOME'] }}/.config/xdg-desktop-portal" + state: "directory" + mode: "0755" + + - name: "Configure portal backends" + ansible.builtin.copy: + dest: "{{ ansible_facts['env']['HOME'] }}/.config/xdg-desktop-portal/portals.conf" + mode: "0644" + content: | + [preferred] + default=hyprland;gnome + - name: "Copy hyprland scripts" become: true ansible.builtin.copy: -- cgit v1.2.3