macOS: Fix browsing of directory paths with spaces (#1546)
Some checks failed
Build check / build (push) Waiting to run
Generate translation template / generate-pot (push) Failing after 1s

This commit is contained in:
neebyA 2025-05-04 04:46:01 -07:00 committed by GitHub
parent 00099c5ecc
commit fa7ae84314
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View file

@ -869,7 +869,7 @@ void wxTitleManagerList::OnContextMenuSelected(wxCommandEvent& event)
case kContextMenuOpenDirectory:
{
const auto path = fs::is_directory(entry->path) ? entry->path : entry->path.parent_path();
wxLaunchDefaultBrowser(wxHelper::FromUtf8(fmt::format("file:{}", _pathToUtf8(path))));
wxLaunchDefaultApplication(wxHelper::FromPath(path));
}
break;
case kContextMenuDelete: