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
  Selection Tool Glitch DavidCoy 2 239 Jul 5, 2018 21:34
Last Post: paynekj
  tool window size LouMc 0 117 Apr 30, 2018 04:20
Last Post: LouMc
  How To Finish With a Tool? abrogard 2 326 Feb 18, 2018 04:28
Last Post: abrogard
  Sorting out old .xcf files Yumi 1 205 Feb 12, 2018 14:36
Last Post: paynekj
  clone tool in xubuntu 16.04 petter5 1 423 Oct 16, 2017 11:46
Last Post: paynekj

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS