~ted/ubuntu-app-launch/snap-icon-unbreak

« back to all changes in this revision

Viewing changes to application.conf.in

Updated to failure-is-an-option

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
env APP_URIS
14
14
export APP_URIS
15
15
 
16
 
script
17
 
        CLICK_PKG=`echo "${APP_ID}" | cut -d _ -f 1`
18
 
 
19
 
        if [ ! -z $CLICK_PKG ] ; then
20
 
                CLICK_DIR=`click pkgdir "${CLICK_PKG}" 2> /dev/null || true`
21
 
        fi
22
 
 
23
 
        if [ ! -z $CLICK_DIR ] && [ -d $CLICK_DIR ] ; then
24
 
                if ! start application-click APP_ID="${APP_ID}" APP_URIS="${APP_URIS}"; then
25
 
                        @pkglibexecdir@/second-exec
26
 
                fi
27
 
        else
28
 
                if @pkglibexecdir@/desktop-single $APP_ID ; then
29
 
                        if ! start application-legacy APP_ID="${APP_ID}" INSTANCE_ID="" APP_URIS="${APP_URIS}" ; then
30
 
                                @pkglibexecdir@/second-exec
31
 
                        fi
32
 
                else
33
 
                        start application-legacy APP_ID="${APP_ID}" INSTANCE_ID=`date -u +%s` APP_URIS="${APP_URIS}"
34
 
                fi
35
 
        fi
36
 
end script
 
16
exec @pkglibexecdir@/application-job