unit.conf: Fix remaining %t
[src/app-framework-main.git] / conf / generate-unit-conf / afm-unit
index 58fe851..9a8cd62 100644 (file)
@@ -1,4 +1,5 @@
 divert(-1)
+dnl vim: set filetype=sysctl.conf.m4 syntax=sysctl.conf.m4:
 -----------------------------------------------------------------------
 -- Set the comment character of m4 to ; instead of #
 -- This is needed for substitution within lines starting with #
@@ -42,11 +43,16 @@ define( `IF_NOT_VALUE', `MUSTACH_IF_NOT(value=$1)')
 
 -----------------------------------------------------------------------
 -- 
+ when home screen will use real ids
+ use TARGET={{:id}}--{{:ver}}--{{:#target}}
+ instead of TARGET={{idaver}}{{^#target=main}}@{{:#target}}{{/#target=main}}
+
 define( `TARGET', `{{idaver}}{{^#target=main}}@{{:#target}}{{/#target=main}}')
-define( `UNIT_NAME_BASE', `afm-ON_PERM(`:public:hidden', `service', `appli')-{{:id}}--{{:ver}}--{{:#target}}')
+define( `UNIT_NAME_BASE', `afm-ON_PERM(`:public:hidden', `service', `appli')-{{:id}}--{{:ver}}--{{:#target}}@')
 define( `UNIT_NAME_SERVICE', `UNIT_NAME_BASE%i.service')
 define( `UNIT_NAME_SOCKET_FOR', `afm-api-ws-$1@%i.socket')
 define( `APP_DATA_DIR', `/home/%i/app-data')
+define( `USER_RUN_DIR', `/run/user/%i')
 
 -----------------------------------------------------------------------
 --