https://kotlinlang.org logo
Title
p

ppvi

04/12/2022, 8:17 PM
All my dialogs on linux look like this. Using awt's
FileDialog
for example. I checked out the compose-jb samples and they have the same problem. What could I be missing?
k

Kirill Grouchnikov

04/12/2022, 8:22 PM
File a bug, with detailed info on: OS version, JVM version, Compose version, graphics card and its driver version
s

SrSouza

04/12/2022, 9:48 PM
I don't think AWT FileDialog is a good solution for Linux, the same thing also apply for handling Tray for example has the same issues in Linux. Jetbrains Toolbox seems to work well on Linux both on openning FileDialog (based on what I see here is a Swing version and not a native one) or also showing the file (maybe they use xdg-open under the hood).
Tbh, I'm looking for a good API to use for Native FileDialog for Linux but I search alot and does not looks like has one API only. For example https://github.com/mlabbe/nativefiledialog that is available on LWJGL list of native libraries does not support Portal and apparently also does not support KDE (I did not test it).
xdg-open
I test it apparently, all distros that I test does support it. (this is only useful to show files, not peek one)
k

Kirill Grouchnikov

04/12/2022, 9:58 PM
Welcome to the wonderful (ahem) world of trying to support THE LINUX
😂 2
s

SrSouza

04/12/2022, 10:03 PM
Deepin Linux was one that I test to see how a Desktop Environment that is not Gnome or KDE would work and apparently they don't have command lines utilities from Gnome or KDE for peeking Dialog that alot of libraries depend on it, but seems like Chrome and Firefox works great their. They also don't have Portal so Firefox is not fallback to it. Maybe take a look at their implementation?