Skip to content

Change default location of WebView2 folder on Windows #2304

@stefnotch

Description

@stefnotch

Problem

Dioxus desktop currently creates a <application name>.exe.WebView2 upon startup.
(e.g. #966 )

However, it creates that folder right next to the .exe file, which is unusual. This becomes worse when one places it in a usually somewhat restricted folder, like a C:\Program Files folder.

When working in a multi-user setup (rare, but it happens in companies or schools), then this becomes even more important. Then, it's important to separate executables from user data. One doesn't want to accidentally leak the private data of one user to another user on the same PC.

Steps To Reproduce

Steps to reproduce the behavior:

  • Compile a Dioxus application for a Windows desktop
  • Start it

Expected behavior

I would have expected Dioxus desktop to automatically pick an appropriate folder, either AppData/Roaming or AppData/Local.

Metadata

Metadata

Assignees

Labels

desktopSuggestions related to the desktop renderer

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions