Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Open Linux terminal and just write to it (without running)
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 375 Views
  • 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 Offline
    H Offline
    hbatalha
    wrote on last edited by
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      2
      • SGaistS SGaist

        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.

        H Offline
        H Offline
        hbatalha
        wrote on last edited by
        #3

        @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?

        jsulmJ 1 Reply Last reply
        0
        • H hbatalha

          @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?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @hbatalha Yes, for example QMessageBox

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

          1 Reply Last reply
          2
          • H Offline
            H Offline
            hbatalha
            wrote on last edited by
            #5

            @jsulm Ok thank you

            1 Reply Last reply
            0

            • Login

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