fix: enable tauri plugin opener#559
Conversation
bfcf5e0 to
d927f50
Compare
|
@Hifumorenko Not a regular Windows user, but I have an Windows 11 VM (x86 64),when I run Not tried build yet, because this VM runs on a machine performs very poorly. |
|
@Hifumorenko reproduced it when run build, just fixed it by adding a remote urls in config. It seems that using localhost plugin will make localhost as an external URL, and have to be specified as a remote url to make the permissions work when build on Windows. |
|
@weareoutman the fix is successful - the links open in a web browser now. Thank you! 🙂 |
|
has cinnyapp/cinny changed their opinion and now allows tauri-specific patches? |
|
@Kruemmelspalter In certain cases, essential capabilities on native client can only be achieved by introducing native SDK in web codebase. As long as the team wants to keep their desktop user stay, it's inescapable. E.g., Element Web has to use Electron SDK in their web codebase. I tried not coupling web and desktop codebase too much, by using dynamic imports conditionally. Edit: I would not think using patch files to be a better idea, since the web source code is still in active development. |
|
@weareoutman I agree that using dynamic imports in the web codebase would be better, it's just that the cinny web maintainers have said that they don't want to do it like that, so the only other option I see is using the patch files.
~ cinnyapp/cinny#1238 (comment) I'm fully with you that it would be better to do upstream. |
We need tauri v2.8.0 since which supports `WebviewBuilder::on_new_window`
|
Just come across with a solution without touching Cinny web codebase: By calling The exception is calling While It can be handled by using |
|
Tested on:
Test build is at https://github.com/cinnyapp/cinny-desktop/actions/runs/24302351398?pr=559 Can we test it on Linux and MacOS? @weareoutman what OS you tested it on? |
|
@kfiven Tested on macOS |
Works. |
|
Works on Windows. Thanks! |

Description
Links are not working in latest cinny-desktop. This PR introduces tauri plugin opener to fix it.
Fixes #544
along with cinnyapp/cinny#2799.Edit: find a solution without touching Cinny web codebase, see comments below #559 (comment).
Type of change
Checklist: