Skip to content

Commit

Permalink
Fix launching on other operating systems
Browse files Browse the repository at this point in the history
Version to 1.1
  • Loading branch information
narrowtux committed Jul 4, 2015
1 parent 4642a04 commit 7a9935e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.narrowtux</groupId>
<artifactId>FactorioModManager</artifactId>
<version>0.1</version>
<version>0.1.1</version>

<build>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ public void onPlayPressed(ActionEvent event) throws IOException {
step.set(step.get() + 1);
}

Runtime.getRuntime().exec(new String[]{"open", Datastore.getInstance().getFactorioApplication().toString()});
if (OSValidator.isMac()) {
Runtime.getRuntime().exec(new String[]{"open", Datastore.getInstance().getFactorioApplication().toString()});
} else {
Runtime.getRuntime().exec(Datastore.getInstance().getFactorioApplication().toString());
}
step.set(step.get() + 1);
//progress.setVisible(false);
}
Expand Down

0 comments on commit 7a9935e

Please sign in to comment.