X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=conf%2Fgenerate-unit-conf%2Fafm-unit;h=9a8cd62d055df5c83adeefeaeffddbb3e0de4675;hb=8c44f9cb53eb74200ac6d25a89b4e5cf12394cdb;hp=e3abf196fe10fe461bc41e4299a8564a2e1fa42a;hpb=88531199d2f46f8758dd1ef3262e567cc849c0b8;p=src%2Fapp-framework-main.git diff --git a/conf/generate-unit-conf/afm-unit b/conf/generate-unit-conf/afm-unit index e3abf19..9a8cd62 100644 --- a/conf/generate-unit-conf/afm-unit +++ b/conf/generate-unit-conf/afm-unit @@ -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,10 +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') ----------------------------------------------------------------------- --