Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Restrict gtkfilechooser height
#1
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
Reply
#2
"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?
Reply


Forum Jump: