Skip to content

Commit

Permalink
Fix user home path not being resolved
Browse files Browse the repository at this point in the history
On Linux and Mac the ~ alias for the home directory is not resolved. Use
the Java "user.home" property instead.
  • Loading branch information
dozius committed Apr 18, 2021
1 parent 56b72db commit 2e2c1e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/github/dozius/TwisterSisterExtension.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ private String getSpecificDeviceSettingsPath()
return userProfile + "/Documents/Bitwig Studio/Extensions/" + file;

case MAC:
return "~/Documents/Bitwig Studio/Extensions/" + file;
return System.getProperty("user.home") + "/Documents/Bitwig Studio/Extensions/" + file;

case LINUX:
return "~/Bitwig Studio/Extensions/" + file;
return System.getProperty("user.home") + "/Bitwig Studio/Extensions/" + file;

default:
throw new IllegalArgumentException("Unknown Platform");
Expand Down

0 comments on commit 2e2c1e1

Please sign in to comment.