Skip to content

Commit 536d128

Browse files
committed
feat(desktop): add notification service
1 parent 3c95279 commit 536d128

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

roles/desktop/meta/argument_specs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ argument_specs:
1818
type: bool
1919
default: false
2020

21+
desktop_notifications_service:
22+
description: Define Freedesktop notifications service.
23+
type: str
24+
2125
desktop_usermount:
2226
description: Allow users to mount.
2327
type: bool

roles/desktop/meta/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ galaxy_info:
1313
galaxy_tags:
1414
- desktop
1515
- workstation
16+
- freedesktop

roles/desktop/tasks/main.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@
3939
become: false
4040
when: desktop_ohmyzsh
4141

42+
- name: Add XDG notifications service
43+
become: false
44+
when: desktop_notifications_service is defined
45+
copy:
46+
dest: "~/.local/share/dbus-1/services/org.freedesktop.Notifications.service"
47+
content: |
48+
[D-BUS Service]
49+
Name=org.freedesktop.Notifications
50+
Exec=/usr/local/bin/{{ desktop_notifications_service }}
51+
52+
4253
- name: "Usermount | {{ desktop_usermount | ternary('enable', 'disable') }}"
4354
ansible.posix.sysctl:
4455
name: vfs.usermount

0 commit comments

Comments
 (0)