diff --git a/src/main.cpp b/src/main.cpp index 13a9a3e..8c41520 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -17,9 +17,17 @@ bool wasAppStartedFromARemoteDrive() { const std::string exePath = kiwix::getExecutablePath(); + + // Usual mounting point for Windows Network Drives if ( exePath.substr(0, 2) == "\\\\" ) return true; + // Support macOS Parallels shared folders. + // See https://kb.parallels.com/130138 + if ( exePath.substr(0, 7) == "C:\\Mac\\" ) + return true; + + // Last chance to identify as remote drive return GetDriveTypeA(exePath.substr(0, 3).c_str()) == DRIVE_REMOTE; } #endif