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
|
||||
Reference in New Issue
Block a user