Can't change the directory settings using -D option in SweetHome3D.l4j.ini file

This topic has been viewed 7722 times and has 2 replies
Thread status: Active
Questions about Sweet Home 3D installation [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
Larnorsh
Posts: 1
Joined: Thu Mar 21, 2013 8:25 am

Can't change the directory settings using -D option in SweetHome3D.l4j.ini file

Post by Larnorsh »

Hi,

I'm trying to use the option to change directory settings described at http://www.sweethome3d.com/javadoc/com/ ... ome3D.html.

I have created a SweetHome3D.l4j.ini file stored in the same directory as SweetHome3D.exe with the parameters
-Dcom.eteks.sweethome3d.applicationFolders="C:\Egt\Etek\RunDir\Sweet Home 3D" and
-Dcom.eteks.sweethome3d.preferencesFolder="C:\Egt\Etek\RunDir\Sweet Home 3D".

But when I start SweetHome3D and open a project or load a furniture library it still use the "C:\Documents and Settings\user\Application Data\eTeks\Sweet Home 3D" path and my roaming profile exceeds its limitation. I don't want to have anything stored under my roaming profile because I have to delete everything before i can log off my computer.

How shall I specify this option to get it work?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Can't change the directory settings using -D option in SweetHome3D.l4j.ini file

Post by Puybaret »

Please set the com.eteks.sweethome3d.tools.temporarySubFolder System property with a subdirectory directory relative to the default one (i.e. C:\Documents and Settings\user\Application Data\eTeks\Sweet Home 3D under Windows Vista/7/8). With the -D option you used, it could give for example:

Code: Select all

-Dcom.eteks.sweethome3d.tools.temporarySubFolder=..\..\..\..\..\Egt\Eteks\RunDir\Sweet Home 3D\work
So, in the current version, if you want a completely different directory, you'll have to use ".." symbols to go to the parent directory until the root, then go to the directory of your choice (still on the same drive). Hope you can handle it.

I would prefer that the temporary files found in this directory are automatically deleted at program exit, but there's a bug in Java under Windows I don't think Oracle fixed it yet. Nevertheless, temporary files older than a week are automatically deleted at program launch.
Emmanuel Puybaret, Sweet Home 3D creator
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Can't change the directory settings using -D option in SweetHome3D.l4j.ini file

Post by Puybaret »

From version 4.1, you can also set an absolute path in the com.eteks.sweethome3d.tools.temporarySubFolder system property.

Note also that I found how to apply the workaround proposed in the bug #6962458, so temporary files created by Sweet Home 3D will be automatically deleted at program end if necessary.
Emmanuel Puybaret, Sweet Home 3D creator
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest