Merge pull request #1176 from kiwix/fix_drive_variable

This commit is contained in:
Matthieu Gautier 2024-08-15 13:57:19 +02:00 committed by GitHub
commit 32f0ee581e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,7 +24,6 @@ int main(int argc, char *argv[])
#ifdef Q_OS_WIN
std::string driveLetter = kiwix::getExecutablePath().substr(0, 3);
qInfo() << driverLetter;
UINT driveType = GetDriveTypeA(driveLetter.c_str());
if(driveType == DRIVE_REMOTE) {
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", QByteArray("--no-sandbox"));