Gimp-Forum.net

Full Version: Restrict gtkfilechooser height
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
On 1024x768 resolution with gtk-font-name="Sans 14" in gtkrc-2.0.
Gimp's open, save, or export windows dialog often being bigger than actual screen.

To prevent this from happening:
Code:
sudo chattr +i ~/.config/gtk-2.0/gtkfilechooser.ini


This prevent other gtk2 application changing the Geometry* values.

To re-allow editing:
Code:
sudo chattr -i file-path

or sudo editior file-path

gtkfilechooser.ini example:
Code:
[Filechooser Settings]
LocationMode=filename-entry
ShowHidden=false
ExpandFolders=false
ShowSizeColumn=true
GeometryX=0
GeometryY=0
GeometryWidth=800
GeometryHeight=700
SortColumn=name
SortOrder=ascending
StartupMode=recent
"chattr +i" looks a bit extreme... Wouldn't "chmod -w" on the file and its parent be enough? Or give the ownership of the file and its parent to root?