mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-12-26 01:56:44 +00:00
look for user defined application home
This commit is contained in:
parent
6ad3f53731
commit
962253beaa
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,10 @@ public class PropertyDefiner extends PropertyDefinerBase {
|
|||
|
||||
@Override
|
||||
public String getPropertyValue() {
|
||||
if(System.getProperty(application.toLowerCase() + ".home") != null) {
|
||||
return System.getProperty(application.toLowerCase() + ".home");
|
||||
}
|
||||
|
||||
return isWindows() ? System.getenv("APPDATA") + "/" + application.substring(0, 1).toUpperCase() + application.substring(1).toLowerCase() : System.getProperty("user.home") + "/." + application.toLowerCase();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue