You are not logged in.

#1 2019-05-04 12:43:00

LinuxShadow
Member
Registered: 2019-05-04
Posts: 26

[SOLVED] Open/Save File dialog not working

Hi there.

I've got the problem that I can't open or save files via LibreOffice, Firefox or Code as the dialog is not working correctly. It only opens a white window:
https://user-images.githubusercontent.c … d28461.jpg

xdg-mime query default inode/directory
pcmanfm.desktop

I'm using the i3 tiling window manager.
Here is a list of a few packages which might or might not be relevant:

gtk-update-icon-cache 1:3.24.8-1
gtk2 2.24.32-1
gtk3 1:3.24.8-1
firefox 66.0.3-1
electron 4.1.4-1
code 1.33.1-1
libreoffice-fresh 6.2.3-2
lightdm 1:1.28.0-4
lightdm-gtk-greeter 1:2.0.6-1
linux 5.0.10.arch1-1
linux-api-headers 5.0.7-1
linux-firmware 20190424.4b6cf2b-1
qt5-base 5.12.3-2
qt5-imageformats 5.12.3-1
qt5-svg 5.12.3-1
qt5-x11extras 5.12.3-1
ranger 1.9.2-1
pcmanfm 1.3.1-1
i3-gaps 4.16.1-1
i3lock 2.11.1-1
i3status 2.12-2

It's a fresh installation of Arch Linux (and my first Linux system, too).
If more information is required, just let me know.

Mod edit: Replaced oversized image with url. Please read the Code of Conduct and only post thumbnails. -- WorMzy

Last edited by LinuxShadow (2019-05-22 11:00:13)

Offline

#2 2019-05-04 13:04:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,506

Re: [SOLVED] Open/Save File dialog not working

Please post the outputs of

hostnamectl
loginctl session-status

Also which gtk styles do you use? ("Adwaita" etc.)?

Online

#3 2019-05-04 13:41:43

LinuxShadow
Member
Registered: 2019-05-04
Posts: 26

Re: [SOLVED] Open/Save File dialog not working

seth wrote:

Please post the outputs of

hostnamectl
loginctl session-status

Also which gtk styles do you use? ("Adwaita" etc.)?

Using neofetch:

Theme: Adwaita [GTK2/3]
Icons: Adwaita [GTK2/3]

hostnamectl:

  Static hostname: ShadowLinux
         Icon name: computer-laptop
           Chassis: laptop
        Machine ID: 
           Boot ID: 
  Operating System: Arch Linux
            Kernel: Linux 5.0.9-arch1-1-ARCH
      Architecture: x86-64

Should I also post the machine and boot ID?

loginctl session-status:

           Since: Sat 2019-05-04 12:16:12 CEST; 3h 24min ago
          Leader: 649 (lightdm)
            Seat: seat0; vc7
         Display: :0
         Service: lightdm; type x11; class user
         Desktop: i3
           State: active
            Unit: session-2.scope
                  ├─  649 lightdm --session-child 14 21
                  ├─  669 /usr/bin/gnome-keyring-daemon --daemonize --login
                  ├─  672 i3
                  ├─  681 nm-applet
                  ├─  683 light-locker
                  ├─  685 i3bar --bar_id=bar-0 --socket=/run/user/1000/i3/ipc-socket.672
                  ├─  686 i3status
                  ├─ 8939 /bin/bash
                  ├─ 8942 /usr/lib/firefox/firefox
                  ├─ 9079 /usr/lib/firefox/firefox -contentproc -childID 2 -isForBrowser -prefs>
                  ├─ 9652 /usr/lib/firefox/firefox -contentproc -childID 9 -isForBrowser -prefs>
                  ├─ 9746 /usr/lib/firefox/firefox -contentproc -childID 10 -isForBrowser -pref>
                  ├─10693 /bin/bash
                  ├─10698 feedreader
                  ├─10710 /usr/lib/WebKitWebProcess 4 18
                  ├─10711 /usr/lib/WebKitNetworkProcess 5 18
                  ├─11487 /usr/lib/firefox/firefox -contentproc -childID 25 -isForBrowser -pref>
                  ├─11578 /usr/lib/firefox/firefox -contentproc -childID 27 -isForBrowser -pref>
                  ├─11904 /usr/lib/firefox/firefox -contentproc -childID 30 -isForBrowser -pref>
                  └─12382 /usr/lib/firefox/firefox -contentproc -childID 31 -isForBrowser -pref>

Offline

#4 2019-05-04 14:16:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,506

Re: [SOLVED] Open/Save File dialog not working

Should I also post the machine and boot ID?

No, the important part is the static hostname.

From the photo, the dialogs don't seem to be floating?

Online

#5 2019-05-04 14:34:17

LinuxShadow
Member
Registered: 2019-05-04
Posts: 26

Re: [SOLVED] Open/Save File dialog not working

seth wrote:

Should I also post the machine and boot ID?

No, the important part is the static hostname.

From the photo, the dialogs don't seem to be floating?

I don't know about all dialogs, but the "Set Up an Existing Email Account" dialog from Thunderbird is floating.

Offline

#6 2019-05-04 20:00:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,506

Re: [SOLVED] Open/Save File dialog not working

Try to run an affected program from an interactive shell and see whether it yells some errors at you.

Online

#7 2019-05-04 20:27:54

LinuxShadow
Member
Registered: 2019-05-04
Posts: 26

Re: [SOLVED] Open/Save File dialog not working

seth wrote:

Try to run an affected program from an interactive shell and see whether it yells some errors at you.

Ok, I just did that. Firefox gave me no errors and I was not able to even see if code got some errors.
Thought I noticed this, which only occurs when there are enough files within a directory: https://i.imgur.com/BP1kcYN.png

Offline

#8 2019-05-04 20:32:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,506

Re: [SOLVED] Open/Save File dialog not working

Try something simpler (gedit?) - FF will most likely invoke a subprocess and redirect the output somewhere.

Online

#9 2019-05-04 20:39:45

LinuxShadow
Member
Registered: 2019-05-04
Posts: 26

Re: [SOLVED] Open/Save File dialog not working

seth wrote:

Try something simpler (gedit?) - FF will most likely invoke a subprocess and redirect the output somewhere.

gedit does not output any errors.

Offline

#10 2019-05-06 06:37:39

LinuxShadow
Member
Registered: 2019-05-04
Posts: 26

Re: [SOLVED] Open/Save File dialog not working

The settings dialog of Birdtray (which itself opens as a floating dialog) can open the file chooser dialog successfully, thought Code, Firefox, gedit and LibreOffice can't.

Offline

#11 2019-05-06 06:46:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,506

Re: [SOLVED] Open/Save File dialog not working

Apparently uses Qt5.
This is a GTK bug but w/o *any* error messages the next best thing you can do is to downgrade gtk or hope that a future upgrade fixes it.

Is this a graphical thing? Can you interact w/ the semi-broken dialog from post #7?
If I should guess from what seems to be the bezel, the dialog is simply VASTLY oversized and shrinking it might reveal its normal contents.

Online

#12 2019-05-06 07:42:01

LinuxShadow
Member
Registered: 2019-05-04
Posts: 26

Re: [SOLVED] Open/Save File dialog not working

seth wrote:

Apparently uses Qt5.
This is a GTK bug but w/o *any* error messages the next best thing you can do is to downgrade gtk or hope that a future upgrade fixes it.

To which version would I have to downgrade?

seth wrote:

Is this a graphical thing? Can you interact w/ the semi-broken dialog from post #7?
If I should guess from what seems to be the bezel, the dialog is simply VASTLY oversized and shrinking it might reveal its normal contents.

I can interact with it perfectly fine.

Offline

#13 2019-05-06 07:51:20

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,506

Re: [SOLVED] Open/Save File dialog not working

The last one that works? How am I supposed to know.
Did you try to simply shrink the dialog?

Online

#14 2019-05-06 08:16:06

LinuxShadow
Member
Registered: 2019-05-04
Posts: 26

Re: [SOLVED] Open/Save File dialog not working

seth wrote:

The last one that works? How am I supposed to know.
Did you try to simply shrink the dialog?

Atleast with the mouse cursor I am not able to shrink it (thought I am able to shrink the QT dialog that way).

Offline

#15 2019-05-06 08:19:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,506

Re: [SOLVED] Open/Save File dialog not working

The window will set a bad minium size, to get some facts on this, dump xprop and xwininfo on it.
Moving away your gtk configs might "solve" this.

Online

#16 2019-05-06 10:47:57

LinuxShadow
Member
Registered: 2019-05-04
Posts: 26

Re: [SOLVED] Open/Save File dialog not working

seth wrote:

The window will set a bad minium size, to get some facts on this, dump xprop and xwininfo on it.
Moving away your gtk configs might "solve" this.

xprop output on Code File-Chooser (post #7):
_NET_WM_DESKTOP(CARDINAL) = 1
WM_STATE(WM_STATE):
		window state: Normal
		icon window: 0x0
I3_FLOATING_WINDOW(CARDINAL) = 1
_NET_WM_STATE(ATOM) = _NET_WM_STATE_MODAL, _NET_WM_STATE_FOCUSED
WM_HINTS(WM_HINTS):
		Client accepts input or input focus: True
		Initial state is Normal State.
		window id # of group leader: 0x2200001
_GTK_THEME_VARIANT(UTF8_STRING) = 
WM_TRANSIENT_FOR(WINDOW): window id # 0x2600001
XdndAware(ATOM) = BITMAP
_NET_WM_OPAQUE_REGION(CARDINAL) = 0, 0, 2894, 2170
WM_WINDOW_ROLE(STRING) = "GtkFileChooserDialog"
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DIALOG
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 35651597, 35651598
_NET_WM_USER_TIME(CARDINAL) = 1839737
_NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x220000c
WM_CLIENT_LEADER(WINDOW): window id # 0x2200001
_NET_WM_PID(CARDINAL) = 2426
WM_LOCALE_NAME(STRING) = "en_GB.UTF-8"
WM_CLIENT_MACHINE(STRING) = "ShadowLinux"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
		program specified minimum size: 879 by 330
		program specified base size: 0 by 0
		window gravity: NorthWest
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_CLASS(STRING) = "electron", "Electron"
WM_ICON_NAME(STRING) = "Open File"
_NET_WM_ICON_NAME(UTF8_STRING) = "Open File"
WM_NAME(STRING) = "Open File"
_NET_WM_NAME(UTF8_STRING) = "Open File"
xwininfo output on Code File-Chooser (post #7):

xwininfo: Window id: 0x2200bb3 "Open File"

  Absolute upper-left X:  -167
  Absolute upper-left Y:  -396
  Relative upper-left X:  4
  Relative upper-left Y:  0
  Width: 2894
  Height: 2170
  Depth: 24
  Visual: 0x13d
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x2200002 (not installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +-167+-396  --167+-396  --167--334  +-167--334
  -geometry 2894x2170+-171+-396

EDIT: I'm using an WQHD monitor btw.

Last edited by LinuxShadow (2019-05-06 10:58:27)

Offline

#17 2019-05-06 11:05:01

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,506

Re: [SOLVED] Open/Save File dialog not working

It's not the window:

WM_NORMAL_HINTS(WM_SIZE_HINTS):
		program specified minimum size: 879 by 330
		program specified base size: 0 by 0

But the window is huge ( compared to 2560×1440):

 Absolute upper-left X:  -167
  Absolute upper-left Y:  -396
  Relative upper-left X:  4
  Relative upper-left Y:  0
  Width: 2894
  Height: 2170

=> Something in your i3 config?

Online

#18 2019-05-06 11:42:42

LinuxShadow
Member
Registered: 2019-05-04
Posts: 26

Re: [SOLVED] Open/Save File dialog not working

seth wrote:

It's not the window:

WM_NORMAL_HINTS(WM_SIZE_HINTS):
		program specified minimum size: 879 by 330
		program specified base size: 0 by 0

But the window is huge ( compared to 2560×1440):

 Absolute upper-left X:  -167
  Absolute upper-left Y:  -396
  Relative upper-left X:  4
  Relative upper-left Y:  0
  Width: 2894
  Height: 2170

=> Something in your i3 config?

Atleast I can't see anything within the config which might cause the issue, but I might have missed some things.
My i3 config.

Offline

#19 2019-05-06 12:39:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,506

Re: [SOLVED] Open/Save File dialog not working

Not really.
Are the windows also oversized under other WMs (openbox)?

Online

#20 2019-05-06 17:21:00

LinuxShadow
Member
Registered: 2019-05-04
Posts: 26

Re: [SOLVED] Open/Save File dialog not working

seth wrote:

Not really.
Are the windows also oversized under other WMs (openbox)?

Ok, I'll take a look at it.

A friend of mine also told me to check the dpi settings:

xdpyinfo | grep -B2 resolution
screen #0:
  dimensions:    2560x1440 pixels (677x381 millimeters)
  resolution:    96x96 dots per inch
xrdb -query | grep dpi
Xft.dpi:	150

Note: 14" 16:9 WQHD display (210 ppi according to notebookcheck)
I'm wondering if this is correct, as it definitly does not look correct with 3 different values.

Last edited by LinuxShadow (2019-05-06 17:34:59)

Offline

#21 2019-05-06 18:31:59

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,506

Re: [SOLVED] Open/Save File dialog not working

This would render too small elements (eg. fonts) but from your screenshot that does not seem to be the case (?) and the windows should certainly not be too big (rather too small)

Online

#22 2019-05-13 10:29:59

LinuxShadow
Member
Registered: 2019-05-04
Posts: 26

Re: [SOLVED] Open/Save File dialog not working

seth wrote:

Not really.
Are the windows also oversized under other WMs (openbox)?

It works perfectly fine under openbox. (tested with gedit and firefox)

Offline

#23 2019-05-13 11:24:29

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,506

Re: [SOLVED] Open/Save File dialog not working

So it's either a bug in i3 or something about your i3 config. Try i3 on a fresh user account (w/o any custom config)

Online

#24 2019-05-15 08:54:21

LinuxShadow
Member
Registered: 2019-05-04
Posts: 26

Re: [SOLVED] Open/Save File dialog not working

seth wrote:

So it's either a bug in i3 or something about your i3 config. Try i3 on a fresh user account (w/o any custom config)

It works fine when creating a new user account, thought every UI element is a bit small.

Offline

#25 2019-05-15 15:11:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,506

Re: [SOLVED] Open/Save File dialog not working

So it's something™ in your i3wm or gtk config. Drop them individually (just move them away, you don't have to delete them) (ideally not while running a GUI session as that user) and see which one it is.

Online

Board footer

Powered by FluxBB