mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-09 04:08:06 -04:00
Merge pull request #1176 from kiwix/fix_drive_variable
This commit is contained in:
commit
32f0ee581e
@ -24,7 +24,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
std::string driveLetter = kiwix::getExecutablePath().substr(0, 3);
|
std::string driveLetter = kiwix::getExecutablePath().substr(0, 3);
|
||||||
qInfo() << driverLetter;
|
|
||||||
UINT driveType = GetDriveTypeA(driveLetter.c_str());
|
UINT driveType = GetDriveTypeA(driveLetter.c_str());
|
||||||
if(driveType == DRIVE_REMOTE) {
|
if(driveType == DRIVE_REMOTE) {
|
||||||
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", QByteArray("--no-sandbox"));
|
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", QByteArray("--no-sandbox"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user