diff --git a/filekit-core/src/jvmMain/kotlin/io/github/vinceglb/filekit/core/platform/linux/LinuxFilePicker.kt b/filekit-core/src/jvmMain/kotlin/io/github/vinceglb/filekit/core/platform/linux/LinuxFilePicker.kt index b7b641e..57b4d01 100644 --- a/filekit-core/src/jvmMain/kotlin/io/github/vinceglb/filekit/core/platform/linux/LinuxFilePicker.kt +++ b/filekit-core/src/jvmMain/kotlin/io/github/vinceglb/filekit/core/platform/linux/LinuxFilePicker.kt @@ -51,4 +51,14 @@ internal class LinuxFilePicker( title, parentWindow ) else swingFilePicker.pickDirectory(initialDirectory, title, parentWindow) + + override suspend fun saveFile( + bytes: ByteArray?, + baseName: String, + extension: String, + initialDirectory: String?, + parentWindow: Window? + ): File? = if (xdgFilePickerPortalAvailable) xdgFilePickerPortal.saveFile( + bytes, baseName, extension, initialDirectory, parentWindow + ) else awtFilePicker.saveFile(bytes, baseName, extension, initialDirectory, parentWindow) } \ No newline at end of file