Replies: 2 comments 10 replies
-
hmm, that's supposed to work. A long time ago i did the same too.
that's indeed not supported. can't really point to the best entry point in the code without knowing how to best solve this but this file is where the "server" is https://github.com/tauri-apps/tauri/blob/dev/crates/tauri/src/protocol/tauri.rs |
Beta Was this translation helpful? Give feedback.
-
Maybe I'm doing something wrong? But in my example the second app always opens the main one (It's interesting that the links to static images are broken): The source code here: https://github.com/XX/tauri-superapp |
Beta Was this translation helpful? Give feedback.
-
I'm making something similar to a superapp. I have a main web app and a bunch of other web apps installed into it. The
dist
structure is something like this:The main application is a manager for other applications (
wapp_a
,wapp_b
, ...) and can launch them. I can create a separate window by calling the command that createsWebviewWindowBuilder
, but how do I specify that the new WebviewWindow should opendist/wapp_a/index.html
, and notdist/index.html
? If I specify a qualifying path inWebviewUrl::App("wapp_a/index.html".into())
, it still opens the mainindex.html
, although in the network tab in devtools I see a call totauri://localhost/wapp_a/index.html
.How can I do this? And if it is possible, how can I isolate the new WebviewWindow so that
wapp_a
can't accesswapp_b
assets? If it is not possible, where in the code are there any modifications I could make to make this possible? If this is not possible, where in the Tauri code are there improvements that I could make to make this possible?Beta Was this translation helpful? Give feedback.
All reactions