Skip to content

Commit 4b57fdc

Browse files
author
Ravbug
committed
Fix string-path conversion issue
1 parent da75dd8 commit 4b57fdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/globals.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ void launch_process(const std::string& command, int flags) {
1919

2020
void reveal_in_explorer(const std::filesystem::path& path) {
2121
#if defined __APPLE__
22-
std::string command = "open \"" + path + "\"";
22+
std::string command = "open \"" + path.string() + "\"";
2323

2424
#elif defined __linux__
25-
std::string command = "xdg-open \"" + path + "\"";
25+
std::string command = "xdg-open \"" + path.string() + "\"";
2626

2727
#elif defined _WIN32
2828
//do not surround the paths in quotes, it will not work

0 commit comments

Comments
 (0)