Prüfen ob programme läuft
-
Hi
ich brauche hilfe bei ob uberprüfen, ob datei läuftcode
QProcess process; QString pgm("pgrep"); QStringList args = QStringList() << "yakuake"; process.start(pgm, args); process.waitForReadyRead(); if(!process.readAllStandardOutput().isEmpty()) ui->label1->setText("Wollen Sie Yakuake aktivieren?"); else ui->label1->setText("Wollen Sie Yakuake deaktivieren?");das skpirt funktioniert nur bei Yakuake Terminal nicht.
ich benutze "Archlinux Openbox"
keine KDE -
Hi
ich brauche hilfe bei ob uberprüfen, ob datei läuftcode
QProcess process; QString pgm("pgrep"); QStringList args = QStringList() << "yakuake"; process.start(pgm, args); process.waitForReadyRead(); if(!process.readAllStandardOutput().isEmpty()) ui->label1->setText("Wollen Sie Yakuake aktivieren?"); else ui->label1->setText("Wollen Sie Yakuake deaktivieren?");das skpirt funktioniert nur bei Yakuake Terminal nicht.
ich benutze "Archlinux Openbox"
keine KDE