You are here

Can you change the GIMP Default Save to location?

10 posts / 0 new
Last post
solanus
solanus's picture
Offline
Last seen: 10 years 1 month ago
Joined: 2006-01-21 19:12
Can you change the GIMP Default Save to location?

By default, GIMP saves all new files to X:\PortableApps\GIMPPortable\App\gimp\bin.
If you save a file to a different location, GIMP will remember that, but only for that session; if you close GIMP, and then re-open it, it will once again save all new files to X:\PortableApps\GIMPPortable\App\gimp\bin.

Not an awful problem, EXCEPT:
When you update GIMP Portable, it blows away the bin folder, and any files you accidentally saved there are lost forever.

I lost a number of files when I just upgraded to 2.6.7.

I looked through the preferences, but I didn't see anything that would allow me to set a default "Save to" folder.

Can anyone help a brother out here?

P.S. I DID search the forums first, and I didn't see anything that would help.

Bart.S
Offline
Last seen: 5 months 3 weeks ago
Developer
Joined: 2008-07-23 07:56
Edit launcher code and recompile

Replace the line

SetOutPath "$PROGRAMDIRECTORY\bin"

by

SetOutPath "$EXEDIR\Data"

or whatever else.

solanus
solanus's picture
Offline
Last seen: 10 years 1 month ago
Joined: 2006-01-21 19:12
Dang. Then here's a request!

I was hoping that at worst, I could edit an ini file or something.

OK, if it's possible, this is a request for the next release of GIMP:

Either:
1. Allow users to set the Default Save To folder in the ini file
or
2. Change the launcher to set the Default Save To folder to a location that doesn't get overwritten when the PA upgrade happens
or
3. Rewrite the installer so that it doesn't overwrite the image files in the Default Save To folder.

We have plenty of other apps that don't overwrite saved settings. It shouldn't be too hard to fix the official release of GIMP Portable to avoid overwriting data saved to the default location.

Thanks.

I made this half-pony, half-monkey monster to please you.

solanus
solanus's picture
Offline
Last seen: 10 years 1 month ago
Joined: 2006-01-21 19:12
What's the variable for the root?

IN NSIS, how would I set it to a subdirectory of the USB root?
For example, to the X:\Documents\ folder?
Thanks!

I made this half-pony, half-monkey monster to please you.

Bart.S
Offline
Last seen: 5 months 3 weeks ago
Developer
Joined: 2008-07-23 07:56
GetRoot

You could use the function GetRoot. These lines might help:

!insertmacro GetRoot
${GetRoot} $EXEDIR $1
SetOutPath "$1\Documents" 
solanus
solanus's picture
Offline
Last seen: 10 years 1 month ago
Joined: 2006-01-21 19:12
GIMPPortable.nsi doesn't compile.

The nsi file included with the source doesn't compile in NSIS.

I get this error:
Error in script "D:\PortableAppSuite\PortableApps\GIMPPortable\Other\Source\GIMPPortable.nsi" on line 313 -- aborting creation process

This is before I do any editing.

I made this half-pony, half-monkey monster to please you.

Bart.S
Offline
Last seen: 5 months 3 weeks ago
Developer
Joined: 2008-07-23 07:56
Plugins?

Do you have all necessary plugins (includes) for compiling?

John T. Haller
John T. Haller's picture
Offline
Last seen: 7 hours 46 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Revision 2

I've posted a quick fix as revision 2 which automatically sets it for you. It will use the following, falling down to the next if one is not present:

1. The Pictures directory told to it by the Platform (which will be customizable)
2. X:\Documents\Pictures
3. X:\Documents
4: X:\

I'm sorry this caused you to lose some files (hopefully you have a recent backup). I'd suggest always double-checking where you are choosing to save files (some apps are better than others at defaults). You should never save personal data to program directories with either portable or local apps as they are usually deleted.

Sometimes, the impossible can become possible, if you're awesome!

solanus
solanus's picture
Offline
Last seen: 10 years 1 month ago
Joined: 2006-01-21 19:12
Thanks, John!

Wow!
You are excellent!
Thankfully, the files I lost were re-creatable; usually, I try to make sure to redirect them to another place, but these were saved to bin as a result of serial brain farts.

I made this half-pony, half-monkey monster to please you.

TerryDan
Offline
Last seen: 14 years 1 week ago
Joined: 2009-11-21 10:28
Customizable Documents Directory

Could you please tell me how to customize this as per your item #1?

Terry Dan

Log in or register to post comments