Skip to content

Commit d117271

Browse files
author
peter
committed
fixes in win
1 parent 67a9ca3 commit d117271

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Options:
6565
* -a - autosave on exit and autoload on start (autosave file);
6666
* -x - execute lua script;
6767
* -m - enable multimedia output;
68-
* -mcmd - enable run cmd on multimedia (for ex. -m/usr/bin/xdg-open).
68+
* -mcmd - enable run cmd on multimedia. Examples: -m/usr/bin/xdg-open (Linux), -m/bin/plumb (Plan9), -m"start\"\"" (Windows).
6969

7070
## Links
7171

main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ static void mmedia_run(const char *f)
242242
static char cmd[512];
243243
if (!mmedia_bin || !mmedia_bin[0])
244244
return;
245-
snprintf(cmd, sizeof(cmd), "%s %s", mmedia_bin, f);
245+
snprintf(cmd, sizeof(cmd), "%s \"%s\"", mmedia_bin, f);
246246
/* not safe! but it is windows... */
247247
system(cmd);
248248
#endif

0 commit comments

Comments
 (0)