diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-10-13 16:06:42 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-11-24 17:44:57 +0100 |
commit | 41d9e2f1d2baca146d4956813642936d852b9dfb (patch) | |
tree | 92385f2fe94beaed827d1f3181be67366f952f2e /conf | |
parent | ebf8252d3b7f46d18f82fdee725b20b5c41f4636 (diff) |
afm-unit.conf: Add XDG dirs definitions
Change-Id: I40d73de059e955256d90ca7831870815c7d90481
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'conf')
-rw-r--r-- | conf/afm-unit-debug.conf.in | 3 | ||||
-rw-r--r-- | conf/afm-unit.conf.in | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/conf/afm-unit-debug.conf.in b/conf/afm-unit-debug.conf.in index 31e0a10..3c05e26 100644 --- a/conf/afm-unit-debug.conf.in +++ b/conf/afm-unit-debug.conf.in @@ -148,6 +148,9 @@ WorkingDirectory=-{{&#metadata.app-data-dir}}/{{:id}} ExecStartPre=/bin/mkdir -p {{&#metadata.app-data-dir}}/{{:id}} Environment=AFM_APP_INSTALL_DIR={{:#metadata.install-dir}} Environment=PATH=/usr/sbin:/usr/bin:/sbin:/bin:{{:#metadata.install-dir}} +Environment=XDG_DATA_HOME={{&#metadata.app-data-dir}}/{{:id}} +Environment=XDG_CONFIG_HOME={{&#metadata.app-data-dir}}/{{:id}} +Environment=XDG_CACHE_HOME={{&#metadata.app-data-dir}}/{{:id}} Environment=XDG_RUNTIME_DIR=/run/user/%i Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%i/bus diff --git a/conf/afm-unit.conf.in b/conf/afm-unit.conf.in index 3f81a08..4a7a1ea 100644 --- a/conf/afm-unit.conf.in +++ b/conf/afm-unit.conf.in @@ -148,6 +148,9 @@ WorkingDirectory=-{{&#metadata.app-data-dir}}/{{:id}} ExecStartPre=/bin/mkdir -p {{&#metadata.app-data-dir}}/{{:id}} Environment=AFM_APP_INSTALL_DIR={{:#metadata.install-dir}} Environment=PATH=/usr/sbin:/usr/bin:/sbin:/bin:{{:#metadata.install-dir}} +Environment=XDG_DATA_HOME={{&#metadata.app-data-dir}}/{{:id}} +Environment=XDG_CONFIG_HOME={{&#metadata.app-data-dir}}/{{:id}} +Environment=XDG_CACHE_HOME={{&#metadata.app-data-dir}}/{{:id}} Environment=XDG_RUNTIME_DIR=/run/user/%i Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%i/bus |