Gimp-Forum.net
Restrict gtkfilechooser height - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Installation and usage (https://www.gimp-forum.net/Forum-Installation-and-usage)
+---- Forum: Linux and other Unixen (https://www.gimp-forum.net/Forum-Linux-and-other-Unixen)
+---- Thread: Restrict gtkfilechooser height (/Thread-Restrict-gtkfilechooser-height)



Restrict gtkfilechooser height - lumqarz - 12-27-2016

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



RE: Restrict gtkfilechooser height - Ofnuts - 12-27-2016

"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?