Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void MainWindow::loadParticionesACopiar()
- {
- QProcess p;
- // comando lista particiones
- p.start("cat /proc/mounts |grep -v loop |grep \"/mnt\" |grep -v \"/mnt/live\" |grep -v \"/mnt/_\" |grep -v \"/mnt/cdrom_\" |cut -d \" \" -f 2 |grep -v \"/proc\"");
- if (!p.waitForFinished(5000)) {
- this->ui->statusBar->showMessage("ERROR: IMPOSIBLE ENCONTRAR PARTICIONES PARA COPIAR");
- return;
- }
- // cargando particiones
- QString line = p.readLine();
- while (!line.isEmpty()) {
- this->ui->comboBoxParticionACopiar->addItem(line);
- line = p.readLine();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement