diff options
author | zottel <github@zottel.net> | 2014-02-17 08:17:47 +0100 |
---|---|---|
committer | zottel <github@zottel.net> | 2014-02-17 08:17:47 +0100 |
commit | 2bca2199112625593eb412584e17e874e71ca913 (patch) | |
tree | c6679ddb544217a10d8255578009c4ba8951bc6b /boot.php | |
parent | 54727d3a66df92596378ea7f5c412d5e6037b037 (diff) | |
parent | f38ab0904101366bf536d46ab460dcd5cf4f60ca (diff) | |
download | volse-hubzilla-2bca2199112625593eb412584e17e874e71ca913.tar.gz volse-hubzilla-2bca2199112625593eb412584e17e874e71ca913.tar.bz2 volse-hubzilla-2bca2199112625593eb412584e17e874e71ca913.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1574,8 +1574,13 @@ function proc_run($cmd){ $args[$x] = escapeshellarg($args[$x]); $cmdline = implode($args," "); - if(is_windows()) - proc_close(proc_open('cmd /c start /b ' . $cmdline,array(),$foo)); + + + if(is_windows()) { + $cwd = getcwd(); + $cmd = "cmd /c start \"title\" /D \"$cwd\" /b $cmdline"; + proc_close(proc_open($cmd, array(), $foo)); + } else proc_close(proc_open($cmdline." &",array(),$foo)); } |