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. How to open a KDE konsole app via QProcess?
QtWS25 Last Chance

How to open a KDE konsole app via QProcess?

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 456 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.
  • S Offline
    S Offline
    SandyLocke
    wrote on last edited by
    #1

    The test app is a widget application which uses QProcess to call different terminal emulators like gnome-terminal, the KDE app konsole or xdg-terminal on different Linux distributions. All my tests where successful except the ones on KDE. There I always end up with

    /usr/bin/konsole: /home/user/Qt/5.12.5/gcc_64/lib/libQt5Core.so.5: version `Qt_5.9.4_PRIVATE_API' not found (required by /usr/lib64/libKF5XmlGui.so.5)
    

    Exempels to call konsole on KDE:

    QProcess::startDetached("konsole");
    QProcess::startDetached("kstart",  {"konsole"});
    QProcess::startDetached("xdg-terminal");
    

    Is there any possibility to open a KDE konsole window even if there is a Qt version mismatch?

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Set the correct PATH before starting the QProcess -> https://doc.qt.io/qt-5/qprocess.html#processEnvironment

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      S 1 Reply Last reply
      2
      • Christian EhrlicherC Christian Ehrlicher

        Set the correct PATH before starting the QProcess -> https://doc.qt.io/qt-5/qprocess.html#processEnvironment

        S Offline
        S Offline
        SandyLocke
        wrote on last edited by
        #3

        @Christian-Ehrlicher

        Thanks, setting the LD_LIBRARY_PATH worked.

        environment.insert("LD_LIBRARY_PATH", "/usr/lib64/");
        
        Pablo J. RoginaP 1 Reply Last reply
        0
        • S SandyLocke

          @Christian-Ehrlicher

          Thanks, setting the LD_LIBRARY_PATH worked.

          environment.insert("LD_LIBRARY_PATH", "/usr/lib64/");
          
          Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #4

          @SandyLocke said in How to open a KDE konsole app via QProcess?:

          worked

          so please mark your post as solved then. Thanks.

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          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