Skip to content

Commit

Permalink
Fix dropbox info.json location issue in *nix
Browse files Browse the repository at this point in the history
  • Loading branch information
iamchathu committed Feb 27, 2017
1 parent 9b5cd7d commit 287c6de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class NixDiode implements Diodable {
@Override
public String getDropBoxPath() throws IOException {
Gson gson = new Gson();
Path pathToDropBox = Paths.get(NIX_DROPBOX_INFO_PATH);
Path pathToDropBox = Paths.get(NIX_DROPBOX_INFO_PATH.replaceFirst("^~", System.getProperty("user.home")));
BufferedReader br = Files.newBufferedReader(pathToDropBox, Charset.forName("UTF-8"));
JsonReader jsonReader = new JsonReader(br);
JsonObject infoJson = gson.fromJson(jsonReader, JsonObject.class);
Expand Down

0 comments on commit 287c6de

Please sign in to comment.