Post Reply 

Huge tool-options files

Nov 25, 2012, 06:40
Post: #1
Huge tool-options files
I process 5-10K pictures a year for my online auctions. I've had a problem for years now that I've never found the answer to. The tool that I use the most is the levels tool. For some reason GIMP saves the settings for every use of the tool FOREVER (.gimp-2.6/tool-options/gimp-levels-tool.settings). That file grows by about 50KB every day. After a few months it takes quite a long time for the levels tool to come up. It seems to load and sift through the whole file every time I use the tool. The first time I discovered this, the file was over 1MB and it was taking ten seconds to come up.

Is there some setting that would fix this? It's a pain to go hunt for and delete that file every time I realize it's taking forever again.

I've tried a lot of tricks including making the file read-only, changing the file to a symbolic link to /dev/null, even changing the owner to root:root AND pointing it to /dev/null or making it read-only. Using the tool just changes it back to the default file with the usual permissions (which looks like a possible security problem if it runs with root privilege when writing the file). The only thing that stops GIMP from writing to that file is removing the executable flag from the .gimp-2.6/tool-options directory, and then I get errors.
Find all posts by this user
Quote this message in a reply
Nov 25, 2012, 09:44
Post: #2
RE: Huge tool-options files
my tuppenceworth

maybe uncomment the line (save-tool-options no) in etc/gimp/2.0/gimprc, about line 580 here

Code:
# Save the tool options when GIMP exits.  Possible values are yes and no.
#
# (save-tool-options no)

or IMHO a better bet is to add it to you local gimprc file.

** https://www.gimp-forum.net/ now answering questions**
Find all posts by this user
Quote this message in a reply
Nov 25, 2012, 10:16 (This post was last modified: Nov 25, 2012 11:57 by rich2005.)
Post: #3
RE: Huge tool-options files
Oops, a quick test and that does not seem to work, I reset (aka deleted) the tool-options folder to make gimp create a new empty one and gimp-curves-tool.settings is still there after using the curves tool & restarting Gimp.

Plan B:
Make an empty file say 'gimp-curves-tool.settings.bak' and copy it to the tool options folder at the start of each new session using an executable bash file. I am using KDE here so Autostart is in ~/.kde4/Autostart not too sure about Gnome if that is what you use.

Code:
#!/bin/bash
#
#for the ever increasing file
#
cp /home/rich/.gimp-2.8/tool-options/gimp-curves-tool.settings.bak  /home/rich/.gimp-2.8/tool-options/gimp-curves-tool.settings

That at least works for each time you fire up your computer
edit: wrong fileabove but the same would apply to 'gimp-levels-tool.settings' file

** https://www.gimp-forum.net/ now answering questions**
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  clone tool in xubuntu 16.04 petter5 1 147 Oct 16, 2017 11:46
Last Post: paynekj
  Move tool garrettlynch 1 229 Jun 29, 2017 12:28
Last Post: ythgilb
  GIMP 2.8 Eyedropper Color Selection Tool Not Working? Upgraded App is Slow?? tootallll 13 10,170 Oct 9, 2014 18:39
Last Post: Graphicman2014
  GIMP tools locking;tool options window flickers. Zenta 9 910 Sep 11, 2014 18:31
Last Post: Zenta
  Can somebody help me with Fuzzy Select Tool mcpon14 1 340 Sep 8, 2014 03:43
Last Post: mcpon14

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS