summaryrefslogtreecommitdiffstats
path: root/roles/hyprland/tasks
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-02-23 20:39:57 +0100
committerAhmed Abdelhalim <[email protected]>2026-02-23 20:39:57 +0100
commit554c308f52abc1057efa3c77416ba0ef79b7d3c4 (patch)
tree25b5a0433a4853c5a5d305e8e9924eef7fe0bafe /roles/hyprland/tasks
parent4f97cef72f2ee1df039c06df7196e56edb362f7b (diff)
Fix hyprland showing gtk filepicker instead of nautilus for sys apps
Diffstat (limited to 'roles/hyprland/tasks')
-rw-r--r--roles/hyprland/tasks/main.yml18
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: