Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. German
  4. Prüfen ob programme läuft
Forum Updated to NodeBB v4.3 + New Features

Prüfen ob programme läuft

Scheduled Pinned Locked Moved Unsolved German
2 Posts 2 Posters 604 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    val78
    wrote on last edited by
    #1

    Hi
    ich brauche hilfe bei ob uberprüfen, ob datei läuft

    code

    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

    K 1 Reply Last reply
    0
    • V val78

      Hi
      ich brauche hilfe bei ob uberprüfen, ob datei läuft

      code

      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

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @val78

      Dies erscheint mir eher ein Linux-Problem zu sein.

      Ich denke, da kommt bei einer Distro eine Meldung und bei der anderen nicht bzw einmal bei beiden Möglichkeiten. Eventuell musst du den Output analysieren und schauen, was da drin steht.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved