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;
|
string[] args;
|
||||||
args ~= exe;
|
args ~= exe;
|
||||||
args ~= "-e";
|
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);
|
auto pid = spawnProcess(args);
|
||||||
wait(pid);
|
wait(pid);
|
||||||
args[2] = "tell application \"Finder\" to activate";
|
args[2] = "tell application \"Finder\" to activate";
|
||||||
|
Log.d("Executing command: ", args);
|
||||||
pid = spawnProcess(args);
|
pid = spawnProcess(args);
|
||||||
wait(pid);
|
wait(pid);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue