New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web view on Windows #178
Comments
This should already work. Note that binaries provided by myself on GitHub don't have the web UI enabled because I am reluctant to ship a web browser. Any third party is welcome to provide such builds. I will nevertheless close the issue for now as it is nothing I will work on. If someone likes to work on it, one can still leave a comment and I'll reopen the issue. |
Note that if Qt WebView gains support for using Windows' native web rendering facilities I will implement support for utilizing it and enable it in my Windows build. However, to my knowledge this is not possible yet. |
Any chance an option could be added instead to open the web UI in Chrome / Edge app mode? msedge -app="http://localhost:8384" |
I haven't had that idea yet. That's something that would be easy to implement, one just has to do it. Maybe it is even possible to pass auth credentials this way. Maybe I'll do it at some point so I'll reopen the issue. |
I've just tried
Alternatively, one could also try to use https://learn.microsoft.com/en-us/microsoft-edge/webview2 directly, even though Qt doesn't support it. According to https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/overview-features-apis?tabs=dotnetcsharp there are APIs to deal with authentication. |
I mean, considering it's pre-installed on Windows 10 and 11, install location should be consistent. Even then, the executable could be made customizable, since the same flags should work on any Chromium based browser. |
I also found this reference online for registry values that point to MS Edge: I feel like |
I've created a first commit (58b8a4e) to support this feature in general. At this point it just tries to locate The next step would be a better automatic detection and the possibility to override the command-line from the UI. |
Tested it on Windows with Just for the sake of it, I've also tested whether the web view using Qt WebEngine works and it works as well. However, it was really slow. For instance the animations of Syncthing's UI were not fluent at all. Maybe it is because I've been using a debug build of Qt (the official MSVC build). |
With 033cd21 the automatic detection should be good enough. Being able to select a binary manually is still missing. Note sure whether I'll look also into the other ideas mentioned in #178 (comment) as they are more effort to implement and maybe not even possible besides focusing an already opened window. |
BTW, it might be a good idea to add |
I've been adding a way to configure a custom command via the UI. One could also add Vivaldi. However, I would actually add none of them because this also needs testing - and I'm not willing to regularly test a bunch of browsers. I've been adding Edge to the list because it should be installed by default on Windows and I've added Chromium/Chrome to the list because it is very likely installed on Windows and GNU/Linux. Those two should suffice. If one wants to use a different browser this is now easily possible and the extra configuration step makes it also clear that one leaves the realm of supported configurations. I think that's as good as it gets for this feature for now. |
Trying out Web View on 1.4.0, and it doesn't save the setting across restarts. |
Right, I can reproduce the problem. I suspect it only happens with builds where built-in web view support is disabled as I have tested this actually a lot with builds with built-in web view support enabled. |
Fixed in 1.4.1. |
Relevant components
syncthingctl
)libsyncthing
)Is your feature request specific to a certain platform/environment? Please specify.
Windows
Is your feature request related to a problem? Please describe.
It would be nice to be able to access the web UI on Windows without opening my browser.
Describe the solution you'd like
Web view support on Windows
Describe alternatives you've considered
🤔
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: