diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-02-23 20:39:57 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-02-23 20:39:57 +0100 |
| commit | 554c308f52abc1057efa3c77416ba0ef79b7d3c4 (patch) | |
| tree | 25b5a0433a4853c5a5d305e8e9924eef7fe0bafe /roles | |
| parent | 4f97cef72f2ee1df039c06df7196e56edb362f7b (diff) | |
Fix hyprland showing gtk filepicker instead of nautilus for sys apps
Diffstat (limited to 'roles')
| -rw-r--r-- | roles/hyprland/tasks/main.yml | 18 |
1 files changed, 17 insertions, 1 deletions
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: |
