2012-03-30 Yaakov Selkowitz * src/cygstart/cygstart.c (cygStart): Handle file: and mailto: URIs. Index: src/cygstart/cygstart.c =================================================================== RCS file: /cvs/cygwin-apps/cygutils/src/cygstart/cygstart.c,v retrieving revision 1.18 diff -u -p -r1.18 cygstart.c --- src/cygstart/cygstart.c 16 Aug 2010 17:05:16 -0000 1.18 +++ src/cygstart/cygstart.c 30 Mar 2012 18:26:58 -0000 @@ -580,9 +580,11 @@ cygStart (const char *aPath, const wchar const wchar_t *pWinDir = NULL; int rc = 0; + if (strncmp (aPath, "file://", 7) == 0) + aPath += 7; #ifdef __CYGWIN__ /* Convert file path from POSIX to Windows, unless it looks like a URL */ - if (!strstr (aPath, "://")) + if (!strstr (aPath, "://") || strncmp (aPath, "mailto:", 7) == 0) { rc = cygstart_posix_to_win_w (aPath, &winPath); if (rc) goto cleanup;