Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QT_QPA_PLATFORM=wayland to run on Wayland anyway.

QT_QPA_PLATFORM=wayland to run on Wayland anyway.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
9 Posts 4 Posters 30.4k 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.
  • I Offline
    I Offline
    ImAli
    wrote on 11 Sept 2022, 15:21 last edited by
    #1

    I am trying to run a program on pycharm and I am having this warning:

    Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use 
    QT_QPA_PLATFORM=wayland to run on Wayland anyway.
    
    

    Can anyone suggest how to set

    QT_QPA_PLATFORM=wayland
    

    ?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 11 Sept 2022, 15:39 last edited by
      #2

      Hi
      Its an environment variable
      so you can set it before running the app or on a global scale.

      I 1 Reply Last reply 12 Sept 2022, 02:05
      1
      • M mrjj
        11 Sept 2022, 15:39

        Hi
        Its an environment variable
        so you can set it before running the app or on a global scale.

        I Offline
        I Offline
        ImAli
        wrote on 12 Sept 2022, 02:05 last edited by
        #3

        @mrjj could you please explain how to do that? I tried

        export QT_QPA_PLATFORM=wayland
        

        method but it did not help

        J 1 Reply Last reply 12 Sept 2022, 06:16
        0
        • I ImAli
          12 Sept 2022, 02:05

          @mrjj could you please explain how to do that? I tried

          export QT_QPA_PLATFORM=wayland
          

          method but it did not help

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 12 Sept 2022, 06:16 last edited by
          #4

          @ImAli said in QT_QPA_PLATFORM=wayland to run on Wayland anyway.:

          I tried

          Where exactly? Did you try it in the same terminal where you also started the application?

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

          I 1 Reply Last reply 12 Sept 2022, 08:27
          1
          • J jsulm
            12 Sept 2022, 06:16

            @ImAli said in QT_QPA_PLATFORM=wayland to run on Wayland anyway.:

            I tried

            Where exactly? Did you try it in the same terminal where you also started the application?

            I Offline
            I Offline
            ImAli
            wrote on 12 Sept 2022, 08:27 last edited by
            #5

            @jsulm I think you made a spot on. Could you please explain how to do that?! I am new to linux and not experienced. I think I did it incorrectly as you said

            J 1 Reply Last reply 12 Sept 2022, 09:09
            0
            • I ImAli
              12 Sept 2022, 08:27

              @jsulm I think you made a spot on. Could you please explain how to do that?! I am new to linux and not experienced. I think I did it incorrectly as you said

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 12 Sept 2022, 09:09 last edited by
              #6

              @ImAli said in QT_QPA_PLATFORM=wayland to run on Wayland anyway.:

              Could you please explain how to do that?!

              Please first explain what exactly you did!
              Do you start your application from QtCreator or from a terminal?

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

              I 1 Reply Last reply 12 Sept 2022, 11:22
              0
              • J jsulm
                12 Sept 2022, 09:09

                @ImAli said in QT_QPA_PLATFORM=wayland to run on Wayland anyway.:

                Could you please explain how to do that?!

                Please first explain what exactly you did!
                Do you start your application from QtCreator or from a terminal?

                I Offline
                I Offline
                ImAli
                wrote on 12 Sept 2022, 11:22 last edited by
                #7

                @jsulm I start the app just like a normal one. I mean I downloaded it from software store, and do not open or run it through the terminal

                J 1 Reply Last reply 12 Sept 2022, 11:25
                0
                • I ImAli
                  12 Sept 2022, 11:22

                  @jsulm I start the app just like a normal one. I mean I downloaded it from software store, and do not open or run it through the terminal

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 12 Sept 2022, 11:25 last edited by
                  #8

                  @ImAli said in QT_QPA_PLATFORM=wayland to run on Wayland anyway.:

                  do not open or run it through the terminal

                  Then try to do so.
                  Open a terminal, enter "export QT_QPA_PLATFORM=wayland" there and then start the app from that terminal:

                  $ export QT_QPA_PLATFORM=wayland
                  $ PATH_TO_THE_APP_EXECUTABLE
                  

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

                  M 1 Reply Last reply 10 Nov 2023, 07:15
                  1
                  • J jsulm
                    12 Sept 2022, 11:25

                    @ImAli said in QT_QPA_PLATFORM=wayland to run on Wayland anyway.:

                    do not open or run it through the terminal

                    Then try to do so.
                    Open a terminal, enter "export QT_QPA_PLATFORM=wayland" there and then start the app from that terminal:

                    $ export QT_QPA_PLATFORM=wayland
                    $ PATH_TO_THE_APP_EXECUTABLE
                    
                    M Offline
                    M Offline
                    MorkSun
                    wrote on 10 Nov 2023, 07:15 last edited by
                    #9

                    @jsulm 竁

                    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