aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorzottel <github@zottel.net>2014-02-17 08:17:47 +0100
committerzottel <github@zottel.net>2014-02-17 08:17:47 +0100
commit2bca2199112625593eb412584e17e874e71ca913 (patch)
treec6679ddb544217a10d8255578009c4ba8951bc6b /boot.php
parent54727d3a66df92596378ea7f5c412d5e6037b037 (diff)
parentf38ab0904101366bf536d46ab460dcd5cf4f60ca (diff)
downloadvolse-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-xboot.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index 41282bb13..b875014bd 100755
--- a/boot.php
+++ b/boot.php
@@ -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));
}