diff options
author | Damian Minkov <damencho@jitsi.org> | 2008-05-28 15:31:32 +0000 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2008-05-28 15:31:32 +0000 |
commit | 178cd0174b315e2fef4338f3c2d8af4fbadf7476 (patch) | |
tree | 8779feb3295096b5d703a43202fbd7eb6a16be01 /src/net/java/sip/communicator/launcher/SIPCommunicator.java | |
parent | bd0589ddf97837b6ce96a895810ce7dec4dc6198 (diff) | |
download | jitsi-178cd0174b315e2fef4338f3c2d8af4fbadf7476.zip jitsi-178cd0174b315e2fef4338f3c2d8af4fbadf7476.tar.gz jitsi-178cd0174b315e2fef4338f3c2d8af4fbadf7476.tar.bz2 |
Setting the right home folder when starting.
Diffstat (limited to 'src/net/java/sip/communicator/launcher/SIPCommunicator.java')
-rw-r--r-- | src/net/java/sip/communicator/launcher/SIPCommunicator.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/launcher/SIPCommunicator.java b/src/net/java/sip/communicator/launcher/SIPCommunicator.java index 3dc2f71..2511512 100644 --- a/src/net/java/sip/communicator/launcher/SIPCommunicator.java +++ b/src/net/java/sip/communicator/launcher/SIPCommunicator.java @@ -33,7 +33,8 @@ public class SIPCommunicator /** * Check whether default config folder exists. * If it exists we use it. Otherwise use the settings coming - * from system properties. + * from system properties. And set SC_HOME_DIR_LOCATION + * as we cannot set it when building dmg packet. * This is done cause moving the config folder and preventing * not using existing data for users already using default folder. */ @@ -53,6 +54,12 @@ public class SIPCommunicator System.setProperty("net.java.sip.communicator.SC_HOME_DIR_NAME", scDefultDirName); } + else + { + System.setProperty("net.java.sip.communicator.SC_HOME_DIR_LOCATION", + System.getProperty("user.home") + File.separator + + "Library" + File.separator + "Application Support"); + } } if (version.startsWith("1.4") || vmVendor.startsWith("Gnu")) |