Fossil

Check-in [f572b62f22]
Login

Check-in [f572b62f22]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix the "fossil chat" command so that it works on Windows.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: f572b62f22466af9241046339e5400fc5186b3bd267df2b7f51c604435272754
User & Date: drh 2021-01-03 16:48:55.326
Context
2021-01-03
17:04
Remove references to the obsolete "ping" feature from the chat documentation. ... (check-in: 017ec310c2 user: drh tags: trunk)
16:48
Fix the "fossil chat" command so that it works on Windows. ... (check-in: f572b62f22 user: drh tags: trunk)
16:40
Use the "plunk" sound for audiable alert in chat. Back out the "ping" processing logic. ... (check-in: f2fcdbc505 user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/chat.c.
706
707
708
709
710
711
712



713

714
715
    zUrl = mprintf(
      "%s://%T:%d%T",
      g.url.protocol, g.url.name, g.url.port, g.url.path
    );
  }
  zBrowser = fossil_web_browser();
  if( zBrowser==0 ) return;



  zCmd = mprintf("%s \"%s/chat?cli\" &", zBrowser, zUrl);

  fossil_system(zCmd);
}







>
>
>

>


706
707
708
709
710
711
712
713
714
715
716
717
718
719
    zUrl = mprintf(
      "%s://%T:%d%T",
      g.url.protocol, g.url.name, g.url.port, g.url.path
    );
  }
  zBrowser = fossil_web_browser();
  if( zBrowser==0 ) return;
#ifdef _WIN32
  zCmd = mprintf("%s %s/chat?cli &", zBrowser, zUrl);
#else
  zCmd = mprintf("%s \"%s/chat?cli\" &", zBrowser, zUrl);
#endif
  fossil_system(zCmd);
}