gradle / gradle-client

Desktop application acting as a Gradle Tooling API client
Apache License 2.0
9 stars 1 forks source link

Directory chooser dialog does not show anything meaningful #10

Open sschuberth opened 1 month ago

sschuberth commented 1 month ago

After clicking on "Add build" I get this:

image

So that's not really meaningful 😉

Running on Fedora Linux 40, KDE spin, with Wayland.

eskatos commented 1 month ago

Arg, not useful at all indeed. We simply use JFileChooser and don't have any Swing customisation in the code so I wonder what is causing this. Could you try changing your KDE/GTK theme to see if it does change something?

sschuberth commented 1 month ago

Alternatively, as I was looking into a solution for https://github.com/oss-review-toolkit/ort-workbench which has similar problems, consider checking any of these:

eskatos commented 1 month ago

Thanks! FileKit uses the AWT file dialog on Linux and it is quite awful. The other two require lwjgl which is a huge library for that purpose. It feels wrong that this is that complicated to show a file dialog. I'll give these a try and see

sschuberth commented 1 month ago

FileKit uses the AWT file dialog on Linux and it is quite awful.

And using FileKit also does not solve the problem, as I've just verified.

For the record, this seems to be the upstream issue.

eskatos commented 1 month ago

compose-multiplatform-file-picker repository has been archived yesterday.

Currently this project is unmaintained. If you want an alternative I will recommend FileKit

🤷

eskatos commented 1 month ago

This looked like the right solution to this problem but it looks abandoned.

sschuberth commented 1 month ago

Another option could be https://github.com/WonderzGmbH/nativefiledialog-java

eskatos commented 1 month ago

I gave it a try today but

sschuberth commented 1 month ago

Thanks for reporting those issues upstream, though!

vinceglb commented 1 week ago

Hi! I'm a contributor of FileKit.

We have just released a new version improving support for Linux on JVM target. Now FileKit uses:

FileKit contains all the modifications proposed in this PR https://github.com/Wavesonics/compose-multiplatform-file-picker/pull/123

We're still working on improving support on all the platforms. JVM one is probably the most complex to implement 😅

If you decide to give FileKit a try and encounter any issues, don't hesitate to create an issue 👌

I hope it helps!

sschuberth commented 1 week ago

Great stuff @vinceglb, that new FileKit version actually works for me!