Hide Forgot
Description of problem: k4dirstat works fine under X11, but crashes on wayland when you open the "file open" dialog, or run it from the terminal. Version-Release number of selected component (if applicable): k4dirstat-3.1.2-1.fc25.x86_64 How reproducible: every time Steps to Reproduce: 1. start the app from the menus 2. click the "open" button or: 1. start the app from the terminal Actual results: The app crashes Additional info: When run from the terminal, the output contains the line: (k4dirstat:17707): Gdk-WARNING **: gdkwindow-x11.c:5554 drawable is not a native X11 window
Well. I haven't machine with wayland. Anyway, looks like for some reasons it calls gtk2 which lacks wayland support. At all. And looks like EVERY kf5 package linked with gtk2 as Qt5 is. That strange. I suppose I can't do anything here for now.
maybe it tries to display the gtk2 file picker if it detects a gnome environment?
That's correct. It does. And as Wayland is default for Gnome now k4dirstat fails to use X features and fall. The workaround could be starting it as following: GDK_BACKEND=x11 k4dirstat Or to force usage of qt file picker. qgnomeplatform package could help here (or not, I can't test this, sorry).
Note that the same problem also affects qtcreator. The GDK_BACKEND=x11 trick helps for both applications.
given that this happens with k4dirstat, qtcreator and also a custom-built Qt5 QML application of mine, I think this should be assigned to the "qt" component in general, not k4dirstat in particular. Hopefully the maintainers there can do something about this, it's quite a serious problem...
It's a GTK bug not Qt I suppose.
This bug is probably a duplicate of bug #1392605.
I agree, closing as duplicate. *** This bug has been marked as a duplicate of bug 1392605 ***