fix Show In File Manager feature for OSX

This commit is contained in:
Vadim Lopatin 2016-01-26 19:43:24 +03:00
parent 73d38d0906
commit 29fb51bcd1
1 changed files with 3 additions and 1 deletions

View File

@ -1208,10 +1208,12 @@ class SDLPlatform : Platform {
string[] args;
args ~= exe;
args ~= "-e";
args ~= "tell application \"Finder\" to reveal POSIX file \" ~ normalized ~ \"";
args ~= "tell application \"Finder\" to reveal (POSIX file \"" ~ normalized ~ "\")";
Log.d("Executing command: ", args);
auto pid = spawnProcess(args);
wait(pid);
args[2] = "tell application \"Finder\" to activate";
Log.d("Executing command: ", args);
pid = spawnProcess(args);
wait(pid);
return true;