tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
85.38k stars 2.58k forks source link

[feat] Application Multi-Opening #11681

Closed why0123 closed 1 week ago

why0123 commented 1 week ago

Describe the problem

I've reviewed a lot of documentation on the subject, but I don't seem to find anything on app multicasting.

I noticed that in Windows, the user data folder (UDF) is stored in <username>/AppData/Local/<appname>/EBWebView, and I'm wondering if we can select a different user data folder at startup to enable app multi-opening.

That way, when users need to log in multiple accounts, they can avoid the hassle of having to log in repeatedly

Describe the solution you'd like

Here is what I think is a possible kind of enablement step:

  1. Be able to create the specified new udf in the default started tauri app using the command e.g. app.createUDF('XXX)
  2. Create a shortcut on the desktop with the specified arg
  3. Switch the UDF used by tauri to the corresponding folder when launched from the shortcut.

In addition, there may be an api to remove non-default udf, and all udf can be removed when uninstalling.

Alternatives considered

No response

Additional context

No response

amrbashir commented 1 week ago

Closing as duplicate of #9285, thanks.