You are not logged in.

#1 2019-08-28 07:21:25

wire7ack
Member
Registered: 2019-05-18
Posts: 35

[SOLVED] GTK File Chooser size

Hello. I have i3wm and my monitor resolution is 1024x768.

I would like to change the size of the GTK file selection to (800, 600), but when executing the command:

$ gsettings set org.gtk.Settings.FileChooser window-size '(800, 600)'

and the opening of the gtk file chooser, the size remains default, that is, for 1920x1080:

$ gsettings get org.gtk.Settings.FileChooser window-size.
(1124, 822)

I don’t understand why this is happening. I tried to register the gtk2 config:

$ cat ~/.config/gtk-2.0/gtkfilechooser.ini
[Filechooser Settings]
LocationMode = path-bar
ShowHidden = false
ShowSizeColumn = true
GeometryX = 50
GeometryY = 50
GeometryWidth = 800
GeometryHeight = 600
SortColumn = name
SortOrder = ascending
StartupMode = recent

But the result remains the same.

Help please sad.

Last edited by wire7ack (2019-08-28 08:22:58)

Offline

#2 2019-08-28 07:43:26

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,419

Re: [SOLVED] GTK File Chooser size

Your window manager is what ultimately defines your window size, so adjust that there: https://wiki.archlinux.org/index.php/I3 … ng_dialogs

FWIW this thread mentions that there might be conflicts with the GDK_SCALE env set.

And just in case, these gsettings commands will also not be consistent if you have a broken session, if you use startx, ensure your xinitrc is properly set up, note the second blue box

Last edited by V1del (2019-08-28 07:55:39)

Offline

#3 2019-08-28 07:58:26

wire7ack
Member
Registered: 2019-05-18
Posts: 35

Re: [SOLVED] GTK File Chooser size

V1del wrote:

Your window manager is what ultimately defines your window size, so adjust that there: https://wiki.archlinux.org/index.php/I3 … ng_dialogs

FWIW this thread mentions that there might be conflicts with the GDK_SCALE env set.

And just in case, these gsettings commands will also not be consistent if you have a broken session, if you use startx, ensure your xinitrc is properly set up, note the second blue box

Thanks! I solved this problem by manually editing the window size gtk file chooser smile

Offline

#4 2019-08-28 08:11:49

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,419

Re: [SOLVED] GTK File Chooser size

Glad to hear, please mark the topic as [SOLVED] by editing your thread title: https://wiki.archlinux.org/index.php/Co … ow_to_post

Offline

Board footer

Powered by FluxBB