* 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>
|
<maxVersion></maxVersion>
|
||||||
<jdkPreference>preferJre</jdkPreference>
|
<jdkPreference>preferJre</jdkPreference>
|
||||||
<maxHeapSize>256</maxHeapSize>
|
<maxHeapSize>256</maxHeapSize>
|
||||||
|
<opt>-Dapplication.deployment=msi</opt>
|
||||||
</jre>
|
</jre>
|
||||||
</launch4jConfig>
|
</launch4jConfig>
|
|
@ -19,6 +19,7 @@
|
||||||
</security>
|
</security>
|
||||||
|
|
||||||
<resources>
|
<resources>
|
||||||
|
<property name="application.deployment" value="webstart" />
|
||||||
<property name="jnlp.packEnabled" value="true" />
|
<property name="jnlp.packEnabled" value="true" />
|
||||||
|
|
||||||
<java version="1.6+" max-heap-size="256m" />
|
<java version="1.6+" max-heap-size="256m" />
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
</security>
|
</security>
|
||||||
|
|
||||||
<resources>
|
<resources>
|
||||||
|
<property name="application.deployment" value="webstart" />
|
||||||
<property name="jnlp.packEnabled" value="true" />
|
<property name="jnlp.packEnabled" value="true" />
|
||||||
|
|
||||||
<java version="1.6+" max-heap-size="256m" />
|
<java version="1.6+" max-heap-size="256m" />
|
||||||
|
|
|
@ -34,7 +34,7 @@ public final class Settings {
|
||||||
|
|
||||||
public static File getApplicationFolder() {
|
public static File getApplicationFolder() {
|
||||||
// special handling for web start
|
// 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
|
// can't use working directory for web start applications
|
||||||
File folder = new File(System.getProperty("user.home"), "." + getApplicationName().toLowerCase());
|
File folder = new File(System.getProperty("user.home"), "." + getApplicationName().toLowerCase());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue