X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=conf%2Funit%2Fservice.inc;h=ea08220aeaffe72cb88d84aad6ff3289234c757d;hb=ac6f7ed88291b81cb70981bd7463b6a3b292fece;hp=bebf25a4090396c4b4463dbda8b0d432d27defe5;hpb=77bd42075de481ae89f6a5b2bc8a79bf967d95cd;p=src%2Fapp-framework-main.git diff --git a/conf/unit/service.inc b/conf/unit/service.inc index bebf25a..ea08220 100644 --- a/conf/unit/service.inc +++ b/conf/unit/service.inc @@ -28,7 +28,7 @@ X-AFM-height={{height}} {{#icon}} X-AFM-icon={{:#metadata.install-dir}}/{{:src}} {{/icon}} -X-AFM--ID={{:id}} +X-AFM--ID=AFID X-AFM--target-name={{:#target}} X-AFM--content={{content.src}} X-AFM--type={{content.type}} @@ -48,6 +48,11 @@ ENDIF After=Network.target +IF_PERM(:public:display) +BindsTo=weston@display.service +After=weston@display.service +ENDIF + # Adds check to smack ConditionSecurity=smack %nl @@ -55,14 +60,14 @@ ConditionSecurity=smack # Automatic bound to required api {{#required-binding}} {{#value=extern}} -BindsTo=UNIT_NAME_BINDING_SERVICE({{name}}) +Requires=UNIT_NAME_BINDING_SERVICE({{name}}) After=UNIT_NAME_BINDING_SERVICE({{name}}) {{/value=extern}} {{/required-binding}} {{#required-api}} {{#value=auto|ws}} -BindsTo=UNIT_NAME_API_SERVICE({{name}}) +Requires=UNIT_NAME_API_SERVICE({{name}}) After=UNIT_NAME_API_SERVICE({{name}}) {{/value=auto|ws}} {{/required-api}} @@ -120,6 +125,7 @@ Environment=XDG_DATA_HOME=APP_WORK_DIR Environment=XDG_CONFIG_HOME=APP_WORK_DIR Environment=XDG_CACHE_HOME=APP_WORK_DIR Environment=XDG_RUNTIME_DIR=RUN_DIR +ON_CONTENT(text/html, Environment=WAIT_FOR_HOST_SERVICE="1") IF_AGL_DEVEL ; Needed to enable debug @@ -145,6 +151,14 @@ include(binder.inc) ExecStart={{:#metadata.install-dir}}/{{content.src}} {{/content.type=application/x-executable}} +;------------------------------------------------------------------------------- +;---- application/vnd.agl.resource ---- +;------------------------------------------------------------------------------- +{{#content.type=application/vnd.agl.resource}} +Type=oneshot +ExecStart=/bin/true +{{/content.type=application/vnd.agl.resource}} + IF_PERM(:system:run-by-default) ;------------------------------------------------------------------------------- ; auto start @@ -160,5 +174,3 @@ ENDIF ENDIF %end systemd-unit - -