Skip to content

Fixed opening file: URIs without authority on macOS#123

Merged
kdroidFilter merged 1 commit intokdroidFilter:masterfrom
boiler23:master
Oct 10, 2025
Merged

Fixed opening file: URIs without authority on macOS#123
kdroidFilter merged 1 commit intokdroidFilter:masterfrom
boiler23:master

Conversation

@boiler23
Copy link
Copy Markdown
Contributor

@boiler23 boiler23 commented Oct 9, 2025

This patch addresses an important case when the URI has the form of file:/Users/.../file.mp4 where authority (//) is not provided. This problem specifically shows up when opening files from Compose Multiplatform resources, acquired by Res.getUri() method, which in turn calls java's ClassLoader.getResource() method that returns a URI without authority.

This patch addresses an important case when the URI has the form of `file:/Users/.../file.mp4` where authority (//) is not provided.
This problem specifically shows up when opening files from Compose Multiplatform resources, acquired by `Res.getUri()` method, which in turn calls java's `ClassLoader.getResource()` method that returns a URI without authority.
@kdroidFilter
Copy link
Copy Markdown
Owner

Looks great !

@boiler23
Copy link
Copy Markdown
Contributor Author

boiler23 commented Oct 9, 2025

@kdroidFilter thanks for your quick feedback :) It appears that the Windows build has failed due to an unrelated issue with WASM. Is it a known issue? Unfortunately, I don't have a Windows machine at hand, so I'm unable to check it myself.

@kdroidFilter kdroidFilter merged commit 24c114e into kdroidFilter:master Oct 10, 2025
2 of 3 checks passed
@kdroidFilter
Copy link
Copy Markdown
Owner

Yes it's a know issue. Thanks a lot !!

@boiler23
Copy link
Copy Markdown
Contributor Author

Awesome, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants