diff --git a/mainwindow.cpp b/mainwindow.cpp index 22a4f64..ff3d1b8 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -759,18 +759,8 @@ int MainWindow::loadKernelExtension(QFile *kernelFile) //Execute commande line processStatus |= executeProcess(&process,command,arguments); - //logger->write("Unloading previous kext : "); - /*** Unload previous kext file ***/ - //TODO find a way to execute process as root - //command = "sudo -S kextunload -v /System/Library/Extensions/AppleGraphicsPowerManagement.kext"; - //arguments.clear(); - //arguments << "-v" << "/System/Library/Extensions/AppleGraphicsPowerManagement.kext"; - //Execute commande line - //processStatus |= executeProcess(&process,command,arguments); - logger->write("Loading modified kext : "); /*** Finally load kext file ***/ - //TODO find a way to execute process as root command = "sudo -S kextload -v /tmp/AppleGraphicsPowerManagement.kext"; arguments.clear(); //Execute commande line