* 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:
Reinhard Pointner 2010-11-07 14:57:57 +00:00
parent ddeeed81b0
commit 99226cb67b
5 changed files with 4 additions and 1 deletions

Binary file not shown.

View File

@ -19,5 +19,6 @@
<maxVersion></maxVersion>
<jdkPreference>preferJre</jdkPreference>
<maxHeapSize>256</maxHeapSize>
<opt>-Dapplication.deployment=msi</opt>
</jre>
</launch4jConfig>

View File

@ -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" />

View File

@ -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" />

View File

@ -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());