diff --git a/snap/snapcraft.core22.yaml b/snap/snapcraft.core22.yaml index 69fe3916..513a81b8 100644 --- a/snap/snapcraft.core22.yaml +++ b/snap/snapcraft.core22.yaml @@ -24,6 +24,9 @@ apps: assisted: extensions: [gnome] + environment: + JAVA_HOME: $SNAP/usr/lib/jvm/java-11-openjdk-amd64 + PATH: $JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH command: bin/dayon.launcher $SNAP/jar/dayon.jar $1 $2 $3 $4 $5 desktop: ../parts/dayon/build/target/dayon.assisted.desktop plugs: @@ -32,6 +35,9 @@ apps: assistant: extensions: [gnome] + environment: + JAVA_HOME: $SNAP/usr/lib/jvm/java-11-openjdk-amd64 + PATH: $JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH command: bin/dayon.launcher $SNAP/jar/dayon.jar assistant $1 $2 $3 desktop: ../parts/dayon/build/target/dayon.assistant.desktop plugs: @@ -66,4 +72,3 @@ parts: stage-packages: [openjdk-11-jre] -