Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1diff --git a/src/QGCApplication.cc b/src/QGCApplication.cc 2index 7992ed00d..a9e0f0ba7 100644 3--- a/src/QGCApplication.cc 4+++ b/src/QGCApplication.cc 5@@ -207,24 +207,6 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting) 6 "sudo apt-get remove modemmanager</pre>").arg(qgcApp()->applicationName()))); 7 return; 8 } 9- // Determine if we have the correct permissions to access USB serial devices 10- QFile permFile("/etc/group"); 11- if(permFile.open(QIODevice::ReadOnly)) { 12- while(!permFile.atEnd()) { 13- QString line = permFile.readLine(); 14- if (line.contains("dialout") && !line.contains(getenv("USER"))) { 15- permFile.close(); 16- _exitWithError(QString( 17- tr("The current user does not have the correct permissions to access serial devices. " 18- "You should also remove modemmanager since it also interferes.<br/><br/>" 19- "If you are using Ubuntu, execute the following commands to fix these issues:<br/>" 20- "<pre>sudo usermod -a -G dialout $USER<br/>" 21- "sudo apt-get remove modemmanager</pre>"))); 22- return; 23- } 24- } 25- permFile.close(); 26- } 27 28 // Always set style to default, this way QT_QUICK_CONTROLS_STYLE environment variable doesn't cause random changes in ui 29 QQuickStyle::setStyle("Default");