Browse Source
Add file associations support to Compose Desktop <!-- Optional --> Fixes #773 ## Testing Tested on the [sample project](https://github.com/zhelenskiy/file-associations-demo). Behaviours per OSs: - MacOS Sonoma: associations work for distributables. - Windows 11: associations work after the installation of the MSI. - Kubuntu: associations do not work, but everything else works fine. However, IDEA also does not have associations there, so I assume this is fine. I didn't write any unit tests because I don’t know which of them you are expecting me to write. So, I'm looking forward to your feedback and suggestions. <!-- Optional --> This should be tested by QA ## Release Notes <!-- Optional, if omitted - won't be included in the changelog Sections: - Highlights - Known issues - Breaking changes - Features - Fixes Subsections: - Multiple Platforms - iOS - Desktop - Web - Resources - Gradle Plugin --> ### Highlight - Desktop - Introduction of the new DSL function in `nativeDistributions` block: ```kotlin fun fileAssociation(mimeType: String, extension: String, description: String): Unit ```pull/5076/head v1.7.0-alpha01
Evgeniy Zhelenskiy
5 months ago
committed by
GitHub
12 changed files with 337 additions and 61 deletions
@ -0,0 +1,11 @@
|
||||
package org.jetbrains.compose.desktop.application.dsl |
||||
|
||||
import java.io.File |
||||
import java.io.Serializable |
||||
|
||||
internal data class FileAssociation( |
||||
val mimeType: String, |
||||
val extension: String, |
||||
val description: String, |
||||
val iconFile: File?, |
||||
) : Serializable |
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 36 KiB |
Loading…
Reference in new issue