Add xdg-desktop-portal desktop configuration
This commit is contained in:
parent
bd7b0bd955
commit
1ce33295f2
3 changed files with 19 additions and 1 deletions
|
|
@ -78,3 +78,7 @@
|
||||||
- name: reload sysctl configuration
|
- name: reload sysctl configuration
|
||||||
become: true
|
become: true
|
||||||
command: 'sysctl --system'
|
command: 'sysctl --system'
|
||||||
|
|
||||||
|
- name: daemon-reload
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
daemon-reload: true
|
||||||
|
|
|
||||||
|
|
@ -1 +1,10 @@
|
||||||
---
|
- name: Create xdg-desktop-portal.service.d directory
|
||||||
|
file:
|
||||||
|
path: '{{ xdg_config_dir }}/systemd/user/xdg-desktop-portal.service.d'
|
||||||
|
state: directory
|
||||||
|
|
||||||
|
- name: Copy xdg-desktop-portal.service drop-in
|
||||||
|
template:
|
||||||
|
src: templates/desktop/xdg-desktop-portal.service.j2
|
||||||
|
dest: 'xdg_config_dir/systemd/user/xdg-desktop-portal/override.conf'
|
||||||
|
notify: daemon-reload
|
||||||
|
|
|
||||||
5
templates/desktop/xdg-desktop-portal.service.j2
Normal file
5
templates/desktop/xdg-desktop-portal.service.j2
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Requires=plasma-core.target
|
||||||
|
After=plasma-core.target
|
||||||
Loading…
Add table
Add a link
Reference in a new issue