Get the new PortableApps.com Platform 10.0: Gorgeous themes, a full portable app store and advanced functionality
Announcing the World's Best Flash Drive: The PortableApps.com Companion | Did you see a malware warning on Friday?

Can you change the GIMP Default Save to location?

solanus's picture
solanus (Homepage) - August 15, 2009 - 2:22pm

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.


( categories: )

Edit launcher code and recompile

Replace the line

SetOutPath "$PROGRAMDIRECTORY\bin"

by

SetOutPath "$EXEDIR\Data"

or whatever else.

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.

When I find myself in times of trouble Mother Mary comes to me
Speaking words of wisdom, let it be.
And in my hour of darkness she is standing right in front of me
Speaking words of wisdom, let it be. Whisper words of wisdom, let it be.

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!

When I find myself in times of trouble Mother Mary comes to me
Speaking words of wisdom, let it be.
And in my hour of darkness she is standing right in front of me
Speaking words of wisdom, let it be. Whisper words of wisdom, let it be.

GetRoot

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

!insertmacro GetRoot
${GetRoot} $EXEDIR $1
SetOutPath "$1\Documents" 

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.

When I find myself in times of trouble Mother Mary comes to me
Speaking words of wisdom, let it be.
And in my hour of darkness she is standing right in front of me
Speaking words of wisdom, let it be. Whisper words of wisdom, let it be.

Plugins?

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

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!

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.

When I find myself in times of trouble Mother Mary comes to me
Speaking words of wisdom, let it be.
And in my hour of darkness she is standing right in front of me
Speaking words of wisdom, let it be. Whisper words of wisdom, let it be.

Customizable Documents Directory

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

Terry Dan