i am using QProcess in order to connect to a wifi network. But when i try the code with 6 arguments, it fails, no output is returned.
If i execute the command in the terminal, it works out of the box: nmcli dev wifi con "myssid" password "myssidpassword"
QStringList arguments{"dev", "wifi", "con", "\"myssid\"", "password", "\"myssidpassword\""};QProcess *process = new QProcess;
process->start("nmcli", arguments);
process->waitForFinished();
return process->readAll();
What am i doing wrong? Thanks.
PD: if i execute other nmcli with 2 arguments, it works.