Skip to content

Commit

Permalink
Add note to not use double-click
Browse files Browse the repository at this point in the history
  • Loading branch information
RezwanArefin01 committed Sep 16, 2022
1 parent d84bba4 commit e34744b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ It is optimized for keyboard users, but has a GUI for the looks as well.
- Download the latest jar from the [release page](https://github.com/RezwanArefin01/ip/releases/).
- Copy the file to the folder you want to use as the home folder for your Duke.
- Make sure the directory has read and write permissions.
- Double-click the file to start the app. If it does not work then try running `java -jar duke.jar` in a terminal.
- Run `java -jar duke.jar` in a terminal to start Duke. A data directory will be created in the location you execute the command from.
- Do not use double click to start the application. Because your OS can decide to execute the command from a different place.
- Enter `help` to get started!

# Features <a name="features"></a>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/duke/ui/Gui.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void start(Stage stage) {
stage.setScene(scene);

// create path = current directory / data / data.txt
Path path = Paths.get(".", "data", "data.txt");
Path path = Paths.get(System.getProperty("user.dir"), "data", "data.txt");
fxmlLoader.<MainWindow>getController().initDuke(path);

stage.show();
Expand Down

0 comments on commit e34744b

Please sign in to comment.