Skip to content

Commit

Permalink
Add env vars for snap
Browse files Browse the repository at this point in the history
  • Loading branch information
RetGal committed Nov 5, 2023
1 parent 95fe4c7 commit a68a2a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ apps:
assisted:
extensions:
[gnome-3-28]
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:
Expand All @@ -27,6 +30,9 @@ apps:
assistant:
extensions:
[gnome-3-28]
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:
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/mpo/dayon/common/Runner.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ static void prepareKeystore(File appHomeDir) {
try {
builder.directory(appHomeDir).start();
} catch (IOException e) {
Log.error(format("Failed to create keystore [%s]", keystore));
Log.error(format("Failed to create keystore [%s]", keystore), e);
}
}
}
Expand Down

0 comments on commit a68a2a4

Please sign in to comment.