mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-16 22:35:04 -05:00
* save application data to user home instead of the working directory if application is installed (because we don't have write permissions in the working directory in that case)
This commit is contained in:
parent
ddeeed81b0
commit
99226cb67b
Binary file not shown.
@ -19,5 +19,6 @@
|
||||
<maxVersion></maxVersion>
|
||||
<jdkPreference>preferJre</jdkPreference>
|
||||
<maxHeapSize>256</maxHeapSize>
|
||||
<opt>-Dapplication.deployment=msi</opt>
|
||||
</jre>
|
||||
</launch4jConfig>
|
@ -19,6 +19,7 @@
|
||||
</security>
|
||||
|
||||
<resources>
|
||||
<property name="application.deployment" value="webstart" />
|
||||
<property name="jnlp.packEnabled" value="true" />
|
||||
|
||||
<java version="1.6+" max-heap-size="256m" />
|
||||
|
@ -31,6 +31,7 @@
|
||||
</security>
|
||||
|
||||
<resources>
|
||||
<property name="application.deployment" value="webstart" />
|
||||
<property name="jnlp.packEnabled" value="true" />
|
||||
|
||||
<java version="1.6+" max-heap-size="256m" />
|
||||
|
@ -34,7 +34,7 @@ public final class Settings {
|
||||
|
||||
public static File getApplicationFolder() {
|
||||
// special handling for web start
|
||||
if (System.getProperty("javawebstart.version") != null) {
|
||||
if (System.getProperty("application.deployment") != null || System.getProperty("javawebstart.version") != null) {
|
||||
// can't use working directory for web start applications
|
||||
File folder = new File(System.getProperty("user.home"), "." + getApplicationName().toLowerCase());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user