Repository navigation
Use the more specific shell.openPath() on Windows - #10040
Merged
Merged
Conversation
Contributor
|
E2E Tests 🚀 |
kevinushey
approved these changes
Oct 20, 2025
kevinushey
left a comment
Contributor
There was a problem hiding this comment.
Nice sleuthing, LGTM!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses #9985
This fixes
UiFrontendEvent.OpenWithSystem, which is experienced asbrowseURL()working in R for local filepaths that contain non-ascii characters, on Windows.Here's a screenshot of executing
browseURL("tütü")on Windows, where there is a local folder named "tütü". And it now dutifully opens in the Windows file explorer.Before this fix the result looked like so:
UiFrontendEvent.OpenWithSystemultimately routes intoNativeHostMainService.doOpenShellExternal()which previously called (only) electron'sshell.openExternal(), which is really designed for URLs, but also works for filepaths in many cases. However, on Windows,shell.openExternal()falls over for local filepaths with non-ascii characters and the recommended solution is to useshell.openPath()instead which really is meant exactly for this: "Open the given file in the desktop's default manner."Related links:
Release Notes
New Features
Bug Fixes
QA Notes