You are here

GIMPL and temporal folder

10 posts / 0 new
Last post
jordis
Offline
Last seen: 5 years 2 months ago
Joined: 2006-04-02 15:01
GIMPL and temporal folder

Hi
In GIMP's Preferences->Folders there are 2 options to let the user set the temp folder and the swap folder. Obviously, setting those to your somewhere on your USB stick is not a good idea in terms of speed. Ideally, this should be the temp folder in the local filesystem, like C:\WINDOWS\TEMP or C:\WINNT\TEMP or even the temp folder within the user profile. Since this may change from one computer to another, the best option would be to specify in GIMP that you want to use the %temp% folder (%temp% is a windows system variable that always points to the user's temp folder). However, specifying %temp% in those GIMP fields yields an error on startup.
Would there be any possibility for the portable launcher (GIMPPortable.exe) to handle this?
It could have an option to let the user choose the temp folders for GIMP, and allowing %temp% would be great.
Any thoughts?

Simeon
Simeon's picture
Offline
Last seen: 10 years 1 month ago
DeveloperTranslator
Joined: 2006-09-25 15:15
The launcher takes care

of that. So the temp folder is always:
GIMPPortable\Data\settings\tmp

“Science is the belief in the ignorance of the experts” - Richard P. Feynman

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

jordis
Offline
Last seen: 5 years 2 months ago
Joined: 2006-04-02 15:01
Right, but...

Ok, but that folder is *still* pointing to the removable/portable drive.
That's what I want to avoid.
What I tried to say in my first post is that I'd like the GIMP temp folder to be in the *local* (fixed) drive of any machine where I plug my USB stick. Since different machines (with different operating systems) use different folder names, the ideal situation would be to use the %temp% system variable (which exists in any Windows machine) as the GIMP temp folder.

I guess the GIMPPortable.ini could have an option like:
setGIMPtemp2WINtemp=1
(set GIMP temp folder to Windows temp folder, for example)
If that option is enabled, GIMPortable.exe should find out what directory the %temp% variable is pointing to in that particular machine and finally set the GIMP temporal folders to the previously retrieved folder.

In theory it is quite straightforward, any thoughts?

John T. Haller
John T. Haller's picture
Offline
Last seen: 7 hours 18 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Yes and No

It will never be the default setting, since there are privacy implications (you'd be leaving bits of your images on every PC you use... deleted files can be undeleted). To add it as an option would probably be an INI switch. I'll consider it for the next release.

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

jordis
Offline
Last seen: 5 years 2 months ago
Joined: 2006-04-02 15:01
Sure

Sure, I never thought that should be the default setting, but an option in the INI would be greatly appreciated.
Thanks for considering!

detlev24
Offline
Last seen: 17 years 2 weeks ago
Joined: 2007-11-10 03:08
"the matter is urgent"

could somebody please tell me how to make current gimp portable work with windows %temp%? it really is urgent because i'm travelling, using gimp (on different computers) from cd and thus cannot edit large images. thx a lot!

ps: and please do not tell me to use an usb-stick instead of a cd.^^

Caehan
Caehan's picture
Offline
Last seen: 1 year 9 months ago
Joined: 2007-10-19 22:51
well...

When gimp is pointed to the temp folder on the cd, it cannot use the temp folder because of it being a cd.
On a thumb drive, GIMP is able to save to the temp folder, but it is trying to run through the small hole that all thumb drives seem to have. This makes it run a little slower.

Am I getting this right?

detlev24
Offline
Last seen: 17 years 2 weeks ago
Joined: 2007-11-10 03:08
solution

right, but i found a better alternative.

to clean the generated gimp-folders i created winapp2.ini with following content and put it in ccleaner portable-dir.

[GNU Image Manipulation Program]
LangSecRef=3021
Default=True
FileKey1=%userprofile%\|.recently-used.xbel
FileKey2=%userprofile%\.gimp-2.4|*.*
FileKey3=%userprofile%\.gimp-2.4\brushes|*.*
FileKey4=%userprofile%\.gimp-2.4\curves|*.*
FileKey5=%userprofile%\.gimp-2.4\environ|*.*
FileKey6=%userprofile%\.gimp-2.4\fonts|*.*
FileKey7=%userprofile%\.gimp-2.4\fractalexplorer|*.*
FileKey8=%userprofile%\.gimp-2.4\gfig|*.*
FileKey9=%userprofile%\.gimp-2.4\gflare|*.*
FileKey10=%userprofile%\.gimp-2.4\gimpressionist|*.*
FileKey11=%userprofile%\.gimp-2.4\gradients|*.*
FileKey12=%userprofile%\.gimp-2.4\interpreters|*.*
FileKey13=%userprofile%\.gimp-2.4\levels|*.*
FileKey14=%userprofile%\.gimp-2.4\modules|*.*
FileKey15=%userprofile%\.gimp-2.4\palettes|*.*
FileKey16=%userprofile%\.gimp-2.4\patterns|*.*
FileKey17=%userprofile%\.gimp-2.4\plug-ins|*.*
FileKey18=%userprofile%\.gimp-2.4\scripts|*.*
FileKey19=%userprofile%\.gimp-2.4\templates|*.*
FileKey20=%userprofile%\.gimp-2.4\themes|*.*
FileKey21=%userprofile%\.gimp-2.4\tmp|*.*
FileKey22=%userprofile%\.gimp-2.4\tool-options|*.*
FileKey23=%userprofile%\.thumbnails|*.*
FileKey24=%userprofile%\.thumbnails\normal|*.*
Caehan
Caehan's picture
Offline
Last seen: 1 year 9 months ago
Joined: 2007-10-19 22:51
Yeah,

Sounds like that would work. The only possible problem would be CCleaner deleting other temp files that the computer's owner might want.

Another solution would be to use the Portidy Portable that is in beta [or was it alpha?].

EDIT: Here is Portidy's link: https://portableapps.com/node/9851. And, it is in beta.

detlev24
Offline
Last seen: 17 years 2 weeks ago
Joined: 2007-11-10 03:08
portidy

portidy seems to become a very nice app but unfortunately (right now) it does not work from cd (i changed folder-settings to %tempdir%). furthermore i did not find a gimp-appini and i do think that it will not work with my skype portable.

anyway aljacom's gimp portable 2.4.1 does work perfectly from cd and ccleaner is enough security for the moment.^^

Log in or register to post comments