From afc745b8c74800b842776f05ee5f4335eb723abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Trellu?= Date: Fri, 24 Nov 2023 12:20:50 -0500 Subject: [PATCH] [ansible/venv] Set XDG_CONFIG_HOME and XDG_CACHE_HOME --- .../templates/virtualenv/ovos-phal-admin.service.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/roles/ovos_installer/templates/virtualenv/ovos-phal-admin.service.j2 b/ansible/roles/ovos_installer/templates/virtualenv/ovos-phal-admin.service.j2 index 58e549be..c9484030 100644 --- a/ansible/roles/ovos_installer/templates/virtualenv/ovos-phal-admin.service.j2 +++ b/ansible/roles/ovos_installer/templates/virtualenv/ovos-phal-admin.service.j2 @@ -4,6 +4,8 @@ Description=Open Voice OS - PHAL Admin After=network.target ovos-messagebus.service [Service] +Environment=XDG_CONFIG_HOME={{ ovos_installer_user_home }}/.config +Environment=XDG_CACHE_HOME={{ ovos_installer_user_home }}/.cache WorkingDirectory={{ ovos_installer_user_home }}/.venvs/ovos ExecStart={{ ovos_installer_user_home }}/.venvs/ovos/bin/ovos_PHAL_admin ExecReload=/bin/kill -s HUP $MAINPID