Re: Portable version

by Puybaret » Wed Jun 05, 2013 9:36 am

isn't it possible to move this work folder in the same directory as SweetHome ?
I chose to create by default the work folder in user home folder for performance reasons. Very often, portable versions are run on a USB key with poor performances at writing time.

Nevertheless if you absolutely want to move this work folder in the folder where portable executables are found, you should make the following changes:
- under Windows, add to the portable version installation folder the two files SweetHome3D-windows-x86.l4j.ini and SweetHome3D-windows-x64.l4j.ini containing the following text:

Code: Select all

-Dcom.eteks.sweethome3d.tools.temporarySubFolder="%EXEDIR%\work"
- under Mac OS X, edit the file SweetHome3D-macosx.app/Contents/Info.plist and add the following lines:

Code: Select all

<key>com.eteks.sweethome3d.tools.temporarySubFolder</key>
<string>$APP_PACKAGE/../work</string>
before the line that contains:

Code: Select all

<key>com.eteks.sweethome3d.deploymentInformation</key>

- under Linux, edit the command files SweetHome3D-linux-x86 and SweetHome3D-linux-x64 and add the following text between java and -Xmx option:

Code: Select all

-Dcom.eteks.sweethome3d.tools.temporarySubFolder="$PROGRAM_DIR"/work
If Liberkey or anyone else decides to distribute the portable version of Sweet Home 3D after changing this parameter or after removing the Mac OS X and Linux versions, they should add a README....TXT files describing these changes.