Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. qt.qpa.xcb: could not connect to display :0

qt.qpa.xcb: could not connect to display :0

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
26 Posts 7 Posters 57.1k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #6

    Now you have to start your application to see the debug output.

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

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SSJCarti
      wrote on last edited by
      #7

      So now I should try this command again? export LIBGL_ALWAYS_INDIRECT=; export DISPLAY=:0; ~/build/QtSLiM

      Also I can only post once every 600 seconds

      I am also doing thin on a windows 10 computer using ubuntu

      JonBJ 1 Reply Last reply
      0
      • S SSJCarti

        So now I should try this command again? export LIBGL_ALWAYS_INDIRECT=; export DISPLAY=:0; ~/build/QtSLiM

        Also I can only post once every 600 seconds

        I am also doing thin on a windows 10 computer using ubuntu

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #8

        @SSJCarti said in qt.qpa.xcb: could not connect to display :0:

        So now I should try this command again? export LIBGL_ALWAYS_INDIRECT=; export DISPLAY=:0; ~/build/QtSLiM

        Yes.

        1 Reply Last reply
        0
        • S SSJCarti

          Hi, I've been trying to set up QtSLiM and it isn't working.

          I enter export LIBGL_ALWAYS_INDIRECT=; export DISPLAY=:0; ~/build/QtSLiM

          and then this is the result
          ubuntu issue.PNG

          Any help would be greatly appreciated

          Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #9

          @SSJCarti said in qt.qpa.xcb: could not connect to display :0:

          QtSLiM

          It would be great you had provided a link to such application

          and then this is the result

          Please paste the output as text, not an screenshot so it's easier to copy/reply to such output

          export DISPLAY=:0

          If you export such variable, it's likely you want some X server to be available.
          Which seems not the case by looking at your output could not connect to display :0

          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
          • S Offline
            S Offline
            SSJCarti
            wrote on last edited by
            #10

            This is the link to the instructions for running the QtSlim, you have to go to section 2.4.5
            http://benhaller.com/slim/SLiM_Manual.pdf
            After running that this is what popped up

            adduser@DESKTOP-991BCVH:~$ export LIBGL_ALWAYS_INDIRECT=; export DISPLAY=:0; ~/build/QtSLiM
            QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms" ...
            QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so"
            Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so, metadata=
            {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
            "Keys": [
            "eglfs"
            ]
            },
            "archreq": 0,
            "className": "QEglFSIntegrationPlugin",
            "debug": false,
            "version": 330752
            }

            Got keys from plugin meta data ("eglfs")
            QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so"
            Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so, metadata=
            {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
            "Keys": [
            "linuxfb"
            ]
            },
            "archreq": 0,
            "className": "QLinuxFbIntegrationPlugin",
            "debug": false,
            "version": 330752
            }

            Got keys from plugin meta data ("linuxfb")
            QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so"
            Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so, metadata=
            {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
            "Keys": [
            "minimal"
            ]
            },
            "archreq": 0,
            "className": "QMinimalIntegrationPlugin",
            "debug": false,
            "version": 330752
            }

            Got keys from plugin meta data ("minimal")
            QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so"
            Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so, metadata={
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
            "Keys": [
            "minimalegl"
            ]
            },
            "archreq": 0,
            "className": "QMinimalEglIntegrationPlugin",
            "debug": false,
            "version": 330752
            }

            Got keys from plugin meta data ("minimalegl")
            QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so"
            Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so, metadata=
            {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
            "Keys": [
            "offscreen"
            ]
            },
            "archreq": 0,
            "className": "QOffscreenIntegrationPlugin",
            "debug": false,
            "version": 330752
            }

            Got keys from plugin meta data ("offscreen")
            QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so"
            Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so, metadata=
            {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
            "Keys": [
            "vnc"
            ]
            },
            "archreq": 0,
            "className": "QVncIntegrationPlugin",
            "debug": false,
            "version": 330752
            }

            Got keys from plugin meta data ("vnc")
            QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
            Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so, metadata=
            {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
            "Keys": [
            "xcb"
            ]
            },
            "archreq": 0,
            "className": "QXcbIntegrationPlugin",
            "debug": false,
            "version": 330752
            }

            Got keys from plugin meta data ("xcb")
            QFactoryLoader::QFactoryLoader() checking directory path "/home/adduser/build/platforms" ...
            loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
            qt.qpa.xcb: could not connect to display :0
            qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
            This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

            Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

            Aborted

            Pablo J. RoginaP 1 Reply Last reply
            0
            • S SSJCarti

              This is the link to the instructions for running the QtSlim, you have to go to section 2.4.5
              http://benhaller.com/slim/SLiM_Manual.pdf
              After running that this is what popped up

              adduser@DESKTOP-991BCVH:~$ export LIBGL_ALWAYS_INDIRECT=; export DISPLAY=:0; ~/build/QtSLiM
              QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms" ...
              QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so"
              Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so, metadata=
              {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
              "Keys": [
              "eglfs"
              ]
              },
              "archreq": 0,
              "className": "QEglFSIntegrationPlugin",
              "debug": false,
              "version": 330752
              }

              Got keys from plugin meta data ("eglfs")
              QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so"
              Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so, metadata=
              {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
              "Keys": [
              "linuxfb"
              ]
              },
              "archreq": 0,
              "className": "QLinuxFbIntegrationPlugin",
              "debug": false,
              "version": 330752
              }

              Got keys from plugin meta data ("linuxfb")
              QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so"
              Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so, metadata=
              {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
              "Keys": [
              "minimal"
              ]
              },
              "archreq": 0,
              "className": "QMinimalIntegrationPlugin",
              "debug": false,
              "version": 330752
              }

              Got keys from plugin meta data ("minimal")
              QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so"
              Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so, metadata={
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
              "Keys": [
              "minimalegl"
              ]
              },
              "archreq": 0,
              "className": "QMinimalEglIntegrationPlugin",
              "debug": false,
              "version": 330752
              }

              Got keys from plugin meta data ("minimalegl")
              QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so"
              Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so, metadata=
              {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
              "Keys": [
              "offscreen"
              ]
              },
              "archreq": 0,
              "className": "QOffscreenIntegrationPlugin",
              "debug": false,
              "version": 330752
              }

              Got keys from plugin meta data ("offscreen")
              QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so"
              Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so, metadata=
              {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
              "Keys": [
              "vnc"
              ]
              },
              "archreq": 0,
              "className": "QVncIntegrationPlugin",
              "debug": false,
              "version": 330752
              }

              Got keys from plugin meta data ("vnc")
              QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
              Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so, metadata=
              {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
              "Keys": [
              "xcb"
              ]
              },
              "archreq": 0,
              "className": "QXcbIntegrationPlugin",
              "debug": false,
              "version": 330752
              }

              Got keys from plugin meta data ("xcb")
              QFactoryLoader::QFactoryLoader() checking directory path "/home/adduser/build/platforms" ...
              loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
              qt.qpa.xcb: could not connect to display :0
              qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
              This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

              Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

              Aborted

              Pablo J. RoginaP Offline
              Pablo J. RoginaP Offline
              Pablo J. Rogina
              wrote on last edited by
              #11

              @SSJCarti said in qt.qpa.xcb: could not connect to display :0:

              qt.qpa.xcb: could not connect to display :0

              it seems you haven't looked at my previous post. You may need an X server running

              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
              2
              • S Offline
                S Offline
                SSJCarti
                wrote on last edited by
                #12

                I have a VcXsrv running. Also known as XLaunch

                Pablo J. RoginaP 1 Reply Last reply
                0
                • S SSJCarti

                  I have a VcXsrv running. Also known as XLaunch

                  Pablo J. RoginaP Offline
                  Pablo J. RoginaP Offline
                  Pablo J. Rogina
                  wrote on last edited by
                  #13

                  @SSJCarti said in qt.qpa.xcb: could not connect to display :0:

                  I have a VcXsrv running

                  According to this site:

                  VcXsrv makes it possible to run Linux GUI programs installed with WSL, the Windows Subsystem for Linux. In bash for Windows, setting the DISPLAY environment variable allows WSL programs to use the Windows GUI. For instance, if VcXsrv is configured to use display number zero, the command DISPLAY=:0 etr would run the game Extreme Tux Racer

                  Given that you're running VcXsrv, you may need to double check its configuration and what display it's exporting/providing to the Linux side of the Windows WSL (sorry but I don't have experience with Windows WSL to help more).

                  You may also want to check the videos here about VcXsrv & Win10 Linux Subsystems

                  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
                  2
                  • S Offline
                    S Offline
                    SSJCarti
                    wrote on last edited by
                    #14

                    thank you. Is there anyone else with potential ideas?

                    1 Reply Last reply
                    0
                    • JonBJ JonB

                      @SSJCarti
                      It's an environment variable. export QT_DEBUG_PLUGINS=1.

                      S Offline
                      S Offline
                      SSJCarti
                      wrote on last edited by
                      #15

                      @JonB Do you have any ideas?

                      JonBJ 1 Reply Last reply
                      0
                      • S SSJCarti

                        @JonB Do you have any ideas?

                        JonBJ Offline
                        JonBJ Offline
                        JonB
                        wrote on last edited by
                        #16

                        @SSJCarti

                        loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
                        qt.qpa.xcb: could not connect to display :0
                        qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
                        

                        I know little about, less than you or @Pablo-J-Rogina . But it does seem to me that whatever he is trying to ask/tell you about an X server --- either not running or somehow not found? --- is what is causing the problem here, given that it has said

                        loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
                        Could not load the Qt platform plugin "xcb" in "" even though it was found.

                        ?

                        There are many Google hits for Could not load the Qt platform plugin "xcb", and we usually find that is an absent library like libxcb-xinerama.so.0. But here I am thinking you should Google for could not load the qt platform plugin "xcb" in "" even though it was found. The "even though it was found" being key. There are a bunch of hits on that, things like XDG_RUNTIME_DIR not giving you a good X environment. If I understood any of this :) that is what I would look through.

                        S 1 Reply Last reply
                        0
                        • JonBJ JonB

                          @SSJCarti

                          loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
                          qt.qpa.xcb: could not connect to display :0
                          qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
                          

                          I know little about, less than you or @Pablo-J-Rogina . But it does seem to me that whatever he is trying to ask/tell you about an X server --- either not running or somehow not found? --- is what is causing the problem here, given that it has said

                          loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
                          Could not load the Qt platform plugin "xcb" in "" even though it was found.

                          ?

                          There are many Google hits for Could not load the Qt platform plugin "xcb", and we usually find that is an absent library like libxcb-xinerama.so.0. But here I am thinking you should Google for could not load the qt platform plugin "xcb" in "" even though it was found. The "even though it was found" being key. There are a bunch of hits on that, things like XDG_RUNTIME_DIR not giving you a good X environment. If I understood any of this :) that is what I would look through.

                          S Offline
                          S Offline
                          SSJCarti
                          wrote on last edited by
                          #17

                          @JonB alright thank you ill look for that

                          JonBJ 1 Reply Last reply
                          0
                          • S SSJCarti

                            @JonB alright thank you ill look for that

                            JonBJ Offline
                            JonBJ Offline
                            JonB
                            wrote on last edited by JonB
                            #18

                            @SSJCarti
                            One thing: It seems to me there is a related discussion going on in https://forum.qt.io/topic/120349/run-qt-gui-application-inside-docker. I assume that Poster is not yourself too. At least, that seems to get the same message as you do:

                            loaded library "/home/user/app/platforms/libqxcb.so"
                            qt.qpa.xcb: could not connect to display
                            qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.

                            So maybe worth a look?

                            EDIT @Pablo-J-Rogina has said below this would not be helpful to you, so don't! :)

                            Pablo J. RoginaP 1 Reply Last reply
                            0
                            • JonBJ JonB

                              @SSJCarti
                              One thing: It seems to me there is a related discussion going on in https://forum.qt.io/topic/120349/run-qt-gui-application-inside-docker. I assume that Poster is not yourself too. At least, that seems to get the same message as you do:

                              loaded library "/home/user/app/platforms/libqxcb.so"
                              qt.qpa.xcb: could not connect to display
                              qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.

                              So maybe worth a look?

                              EDIT @Pablo-J-Rogina has said below this would not be helpful to you, so don't! :)

                              Pablo J. RoginaP Offline
                              Pablo J. RoginaP Offline
                              Pablo J. Rogina
                              wrote on last edited by
                              #19

                              @JonB said in qt.qpa.xcb: could not connect to display :0:

                              So maybe worth a look?

                              I don't think the goals/environments are the same... I'd say it will mislead OP here

                              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

                              S 1 Reply Last reply
                              1
                              • Pablo J. RoginaP Pablo J. Rogina

                                @JonB said in qt.qpa.xcb: could not connect to display :0:

                                So maybe worth a look?

                                I don't think the goals/environments are the same... I'd say it will mislead OP here

                                S Offline
                                S Offline
                                SSJCarti
                                wrote on last edited by
                                #20

                                @Pablo-J-Rogina so is my Xlaunch a xserver?

                                Pablo J. RoginaP 1 Reply Last reply
                                0
                                • S SSJCarti

                                  @Pablo-J-Rogina so is my Xlaunch a xserver?

                                  Pablo J. RoginaP Offline
                                  Pablo J. RoginaP Offline
                                  Pablo J. Rogina
                                  wrote on last edited by
                                  #21

                                  @SSJCarti said in qt.qpa.xcb: could not connect to display :0:

                                  is my Xlaunch a xserver?

                                  Once again, you failed to provided a link to such component/application... Make life easier for the ones that may help you.

                                  If you're referring to this Xlaunch, I'm not familiar with it but from its documentation it is not an X server:

                                  XLaunch is a wizard to make starting X server sessions easy

                                  In addition, have you checked the videos I suggested?

                                  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

                                  S 1 Reply Last reply
                                  0
                                  • Pablo J. RoginaP Pablo J. Rogina

                                    @SSJCarti said in qt.qpa.xcb: could not connect to display :0:

                                    is my Xlaunch a xserver?

                                    Once again, you failed to provided a link to such component/application... Make life easier for the ones that may help you.

                                    If you're referring to this Xlaunch, I'm not familiar with it but from its documentation it is not an X server:

                                    XLaunch is a wizard to make starting X server sessions easy

                                    In addition, have you checked the videos I suggested?

                                    S Offline
                                    S Offline
                                    SSJCarti
                                    wrote on last edited by
                                    #22

                                    @Pablo-J-Rogina I do not know what an xserver is, I am very new to this whole type of stuff

                                    Pablo J. RoginaP 1 Reply Last reply
                                    0
                                    • S SSJCarti

                                      @Pablo-J-Rogina I do not know what an xserver is, I am very new to this whole type of stuff

                                      Pablo J. RoginaP Offline
                                      Pablo J. RoginaP Offline
                                      Pablo J. Rogina
                                      wrote on last edited by
                                      #23

                                      @SSJCarti said in qt.qpa.xcb: could not connect to display :0:

                                      what an xserver is

                                      I guess you'll find lots of references, documentation, tutorials about the X windowing system.
                                      One of the videos I linked before does a good job at describing the purpose and some details of an X server.

                                      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
                                      • B Offline
                                        B Offline
                                        BertChristiaens
                                        wrote on last edited by
                                        #24

                                        In my case I was using PyQt5 in a docker container. Even though
                                        i forwarded my DISPLAY variable and X11-unix path, it didn't seem to find the display.

                                        The solution for me was running xhost +local:* in the terminal of the host (outside of the container), to allow the server connection to be used by the container.

                                        M T 2 Replies Last reply
                                        1
                                        • B BertChristiaens

                                          In my case I was using PyQt5 in a docker container. Even though
                                          i forwarded my DISPLAY variable and X11-unix path, it didn't seem to find the display.

                                          The solution for me was running xhost +local:* in the terminal of the host (outside of the container), to allow the server connection to be used by the container.

                                          M Offline
                                          M Offline
                                          Messiah
                                          wrote on last edited by
                                          #25

                                          @BertChristiaens I created an account just to say that this is exactly what I was looking for! After hours of sifting through online forums trying to find a solution to this problem, this is the one that worked like a charm! Thank you good sir!

                                          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