Skip to content

Commit

Permalink
Added snap target
Browse files Browse the repository at this point in the history
  • Loading branch information
006627 committed Oct 2, 2019
1 parent 5033a6f commit c20c72c
Show file tree
Hide file tree
Showing 3 changed files with 240 additions and 148 deletions.
4 changes: 4 additions & 0 deletions app/components/dbvtk.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ module.exports = class Dbvtk {
// "-Xmx" + maxHeapMemory,
"-Denv=Desktop",
];
if(process.env.SNAP_USER_COMMON){
console.log("SNAP_USER_COMMON: " + process.env.SNAP_USER_COMMON);
javaVMParameters.push("-Ddbvtk.home=" + process.env.SNAP_USER_COMMON);
}

this.process = spawn(java.path, ['-jar'].concat(javaVMParameters).concat("resources/war/" + this.filename), {
cwd: app.getAppPath().replace('app.asar', 'app.asar.unpacked') + '/'
Expand Down
Loading

0 comments on commit c20c72c

Please sign in to comment.