Run flatpak with exported variables
https://github.com/flatpak/flatpak/issues/3847#issuecomment-818532856
This commit is contained in:
10
roles/flatpak/templates/flatpak-automatic.service.j2
Normal file
10
roles/flatpak/templates/flatpak-automatic.service.j2
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=flatpak Automatic Update
|
||||
Documentation=man:flatpak(1)
|
||||
|
||||
[Service]
|
||||
Environment='DISPLAY={{ ansible_facts["env"]["DISPLAY"] }}'
|
||||
Environment='DBUS_SESSION_BUS_ADDRESS={{ ansible_facts["env"]["DBUS_SESSION_BUS_ADDRESS"] }}'
|
||||
Type=simple
|
||||
ExecStartPre=nm-online
|
||||
ExecStart=/usr/bin/flatpak update -y
|
||||
11
roles/flatpak/templates/flatpak-automatic.timer.j2
Normal file
11
roles/flatpak/templates/flatpak-automatic.timer.j2
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=flatpak Automatic Update Trigger
|
||||
Documentation=man:flatpak(1)
|
||||
|
||||
[Timer]
|
||||
OnBootSec=1m
|
||||
OnCalendar=*-*-* *:00:00
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user