vinceglb / FileKit

Pick and save Files, Medias and Folder for Kotlin Multiplatform / KMP and Compose Multiplatform / CMP
https://vinceglb.github.io/FileKit/
MIT License
465 stars 16 forks source link

Swing (JFileChooser) (fallback for Linux) #70

Closed p0058781 closed 4 weeks ago

p0058781 commented 1 month ago

Introduced Swing (JFileChooser) PlatformFilePicker implementation and use it on Linux platform as a fallback when XdgFilePickerPortal is not available for picking directories

JFileChooser looks really ugly, but on some linux distros even xdg-desktop-portal isn't available so we can use Swing JFileChooser as a fallback

p0058781 commented 1 month ago

I only saw now that windows implementation also uses JFIleChooser as a fallback, so maybe then this doesn't make sense the way i did it, there is probably a better way to do it, not to have duplicate code

vinceglb commented 1 month ago

@p0058781 Thanks for creating this PR! I'm going to take a look in the next few days

sschuberth commented 4 weeks ago

Oh, was this accidentally deleted @p0058781?

p0058781 commented 4 weeks ago

Uff, sorry, i deleted my fork, completely forgot about this PR. I probably still have it locally, not sure if i can restore this PR, but i can create a new one