mirror of https://github.com/buggins/dlangui.git
fix Show In File Manager feature for OSX
This commit is contained in:
parent
73d38d0906
commit
29fb51bcd1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue