From 99226cb67bc9d22dfdfd2da5f5bbb61145f2795e Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 7 Nov 2010 14:57:57 +0000 Subject: [PATCH] * 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) --- installer/msi/FileBot.exe | Bin 40960 -> 40960 bytes installer/msi/filebot-launch4j.xml | 1 + installer/webstart/filebot.jnlp | 1 + installer/webstart/filebot.sfv.jnlp | 1 + source/net/sourceforge/filebot/Settings.java | 2 +- 5 files changed, 4 insertions(+), 1 deletion(-) diff --git a/installer/msi/FileBot.exe b/installer/msi/FileBot.exe index ba424cae2b7e4bb6b5c9d63d44182eaa5361e9de..8ffdf3ab721e81dc4c26de0f5dd5762104ee819e 100644 GIT binary patch delta 753 zcmZ{hze@sP7{{OYJt@J62!#t3f{aIjmgyTxzzZIkPQ-{DL=iqTGyhRM<^Orq&PV55 zG$=9B=WtX8=fM!T2p)iLPysz)3G{*$FbUSdbFc$mfITn;et>{u*r@6mYqVrHVk9Qy zH6g#BkUt4|TOGe>&(8lmP=8AOb4uMQ;Tl-tL*l7v*&c-X|1!Se1Y{ftt}ser8rG_; zGO90FhABnh0o&hVjAm@5KHM+3GtS7Ijg#^EWhXfBczfRiQ{V{sD7_2J|2r#SkEt%*3$qNJdIKn6Z>?tzM ze$!-*oFR8fjVzKGU=`PVIAh?D=j1baLDor&?2trn;44$xNDfvU7@+?lR-C(wB`uS@ z=ScO#A@!P6uMDZTr21P)`?E++0B*q!k?ia9Ua%x!aoN!^R|IP5$beLVuE+jv2#m&x zI(<^|PeW9CTaU69Ur-|<+w?ifeY(^iKlHp*&mIfhO8!XSlDth1e@=8ZPrUiluWc{& K6bLsfj(!1@9A?1) diff --git a/installer/msi/filebot-launch4j.xml b/installer/msi/filebot-launch4j.xml index fc4c2698..41e11eac 100644 --- a/installer/msi/filebot-launch4j.xml +++ b/installer/msi/filebot-launch4j.xml @@ -19,5 +19,6 @@ preferJre 256 + -Dapplication.deployment=msi \ No newline at end of file diff --git a/installer/webstart/filebot.jnlp b/installer/webstart/filebot.jnlp index 1ddf2cac..240400bc 100644 --- a/installer/webstart/filebot.jnlp +++ b/installer/webstart/filebot.jnlp @@ -19,6 +19,7 @@ + diff --git a/installer/webstart/filebot.sfv.jnlp b/installer/webstart/filebot.sfv.jnlp index 65de7ed8..74253440 100644 --- a/installer/webstart/filebot.sfv.jnlp +++ b/installer/webstart/filebot.sfv.jnlp @@ -31,6 +31,7 @@ + diff --git a/source/net/sourceforge/filebot/Settings.java b/source/net/sourceforge/filebot/Settings.java index e716d2c1..cfc99530 100644 --- a/source/net/sourceforge/filebot/Settings.java +++ b/source/net/sourceforge/filebot/Settings.java @@ -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());