Qt Forum

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

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Solved Open Linux terminal and just write to it (without running)

    General and Desktop
    3
    5
    115
    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.
    • H
      hbatalha last edited by

      My application uses ffmpeg to convert some files and it needs to be on the user system for the app to run properly. I want to inform the user in the first run that it needs ffmpeg and prompt him/her to install it.
      Since installing something on Linux requires sudo I couldn't figure out how to use QProcess to do that, not even sure if it is possible.

      My first option to solve this is just display a message to the user informing him/her that ffmpeg is needed and show the command to install it below the msg.
      However I am wondering if there's way I could open the terminal from the app and write the command and the user just have to press enter or run the command directly but opening the terminal first so the user can enter the password.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        Different distributions will have different tools to install packages. You may also have uses that only use a GUI to manage their packages. You should just inform them that ffmpeg is required.

        If yourself create a package you can add ffmpeg as a dependency.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        H 1 Reply Last reply Reply Quote 2
        • H
          hbatalha @SGaist last edited by

          @SGaist said in Open Linux terminal and just write to it (without running):

          You should just inform them that ffmpeg is required.

          Just use QMessageBoxto inform them?

          jsulm 1 Reply Last reply Reply Quote 0
          • jsulm
            jsulm Lifetime Qt Champion @hbatalha last edited by

            @hbatalha Yes, for example QMessageBox

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 2
            • H
              hbatalha last edited by

              @jsulm Ok thank you

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