Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Unsolved running apt-get by using Qt (QProcess)

    General and Desktop
    apt-get ubuntu qprocess
    2
    3
    1012
    Loading More Posts
    • 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.
    • aghict
      aghict last edited by aghict

      Hello
      I want to install and run some shell script by using Qt and make a Ubuntu Desktop Application.
      now I use:

          QProcess process;
          process.startDetached("bash /home/root_enable");
          process.waitForFinished(-1);
      

      But I don't see terminal to enter Y/n and other command.
      How can I fix this problem?

      my root_enable is:

      sudo apt-get install vim
      
      1 Reply Last reply Reply Quote 0
      • ?
        A Former User last edited by

        @aghict said:

        But I don't see terminal

        Hi! That's because bash isn't a terminal emulator but a command line interpreter. A common terminal emulator on desktop Linux is for example KDE's Konsole.

        1 Reply Last reply Reply Quote 2
        • aghict
          aghict last edited by

          How can I fix this problem?

          1 Reply Last reply Reply Quote 0
          • First post
            Last post