aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-16 14:14:50 -0800
committerfriendica <info@friendica.com>2014-02-16 14:14:50 -0800
commit0f5ebb9b5a84119466fe0c450a10fb10b32b8cbd (patch)
treee3dbb21bb0b04752a8b068de0fb24c80831bc4d5 /boot.php
parentebd52368bb134e57a54d853732b5b4970a8ce02b (diff)
parente40cdb2047c22a5cd7adbca16fa3c804d7b80509 (diff)
downloadvolse-hubzilla-0f5ebb9b5a84119466fe0c450a10fb10b32b8cbd.tar.gz
volse-hubzilla-0f5ebb9b5a84119466fe0c450a10fb10b32b8cbd.tar.bz2
volse-hubzilla-0f5ebb9b5a84119466fe0c450a10fb10b32b8cbd.zip
Merge https://github.com/friendica/red into zpull
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));
}