Fossil SCM

Fix the "fossil chat" command so that it works on Windows.

drh 2021-01-03 16:48 trunk
Commit f572b62f22466af9241046339e5400fc5186b3bd267df2b7f51c604435272754
1 file changed +4
+4
--- src/chat.c
+++ src/chat.c
@@ -708,8 +708,12 @@
708708
g.url.protocol, g.url.name, g.url.port, g.url.path
709709
);
710710
}
711711
zBrowser = fossil_web_browser();
712712
if( zBrowser==0 ) return;
713
+#ifdef _WIN32
714
+ zCmd = mprintf("%s %s/chat?cli &", zBrowser, zUrl);
715
+#else
713716
zCmd = mprintf("%s \"%s/chat?cli\" &", zBrowser, zUrl);
717
+#endif
714718
fossil_system(zCmd);
715719
}
716720
--- src/chat.c
+++ src/chat.c
@@ -708,8 +708,12 @@
708 g.url.protocol, g.url.name, g.url.port, g.url.path
709 );
710 }
711 zBrowser = fossil_web_browser();
712 if( zBrowser==0 ) return;
 
 
 
713 zCmd = mprintf("%s \"%s/chat?cli\" &", zBrowser, zUrl);
 
714 fossil_system(zCmd);
715 }
716
--- src/chat.c
+++ src/chat.c
@@ -708,8 +708,12 @@
708 g.url.protocol, g.url.name, g.url.port, g.url.path
709 );
710 }
711 zBrowser = fossil_web_browser();
712 if( zBrowser==0 ) return;
713 #ifdef _WIN32
714 zCmd = mprintf("%s %s/chat?cli &", zBrowser, zUrl);
715 #else
716 zCmd = mprintf("%s \"%s/chat?cli\" &", zBrowser, zUrl);
717 #endif
718 fossil_system(zCmd);
719 }
720

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button