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 | f5f925d2b9e517934193fd8e0deb56b3fd645f9c (patch) | |
| tree | 25b5a0433a4853c5a5d305e8e9924eef7fe0bafe | |
| parent | afa5efef2e8d944e6986b69ea401ea5bd3172ca7 (diff) | |
Fix hyprland showing gtk filepicker instead of nautilus for sys apps
| -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: |
