qt5 config tool eror

Forum Forums New users New Users and General Questions qt5 config tool eror

  • This topic has 10 replies, 6 voices, and was last updated Sep 24-10:44 pm by techore.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #89516
    Member
    vikas

      Hello! i am antix user for last 5-6 days, quite a achievement the pain is qt5 config tool, i can’t figure out how to solve this error –

      The QT_QPA_PLATFORMTHEME environment variable is not set (required value:qt5ct)

      I tried adding this line to profile – export QT_QPA_PLATFORMTHEME=”qt5ct”;

      Nothing changes, Then some suggestion i followed on internet mentioned adding above line to – etc/environment.d, i am confused there is only one file named 90qt-a11y.conf and in the file QT_ACCESSIBILITTY=1 this is the line.
      should i overwrite it or write below or something else…..

      can somebody guide me?

      #89521
      Member
      Valter Cardoso
        Helpful
        Up
        0
        ::

        Hi vikas.

        Can you post the output of this: $ env | grep -i qt

        By that I mean, open a terminal and type the above without the $.

        #89575
        Member
        seriousness
          Helpful
          Up
          0
          ::

          Here is the solution!

          (Edit: personally, I would not recommend to start a graphical text editor with sudo, but to use vim or nano instead)

          • This reply was modified 7 months, 2 weeks ago by seriousness.
          #89576
          Member
          blur13
            Helpful
            Up
            0
            ::

            And here:

            https://www.antixforum.com/forums/topic/dark-theme-not-working-for-some-apps/

            https://www.antixforum.com/forums/topic/qt4-not-inheriting-gtk-theme-desktop-icons/

            to quote @tizianomattei
            “I think this should be solved for every user, by rewriting the /etc/environment file and updating the package”

            #89622
            Member
            vikas
              Helpful
              Up
              0
              ::

              Sorry everyone for replying so late i was checking my mail for any update from antix forum but i think that is for just couple of days only, anyway—
              valter cordoso – i have attached the image you asked for.

              seriousness – i did that friend.

              blur13 – thank you for the post i read it, i think they are saying editing the environment file where i am confused. check my question.

              Attachments:
              #89624
              Member
              techore
                Helpful
                Up
                0
                ::

                @seriousness referenced solution using /etc/environment and inserting QT_QPA_PLATFORMTHEME=qt5ct is the same solution I have used, previously, and verified on two computers just now. qt5ct no longer displays the warning.

                As the user, check that the variable is set for the user session and using the correct value using ‘set |grep QT’ after a reboot. The shell should return QT_QPA_PLATFORMTHEME=qt5ct. Note I didn’t use “export” nor quotes but those should be fine and probably clearer syntax. I believe valter’s use of env will provide the same output. As such, the variable is missing in your screen shot. Check your work and reboot and execute set to verify.

                $ sudo cat /etc/environment
                QT_QPA_PLATFORMTHEME=qt5ct
                $ set |grep QT
                QT_QPA_PLATFORMTHEME=qt5ct
                $
                

                Image of qt5ct running as user account.

                Attachments:
                #89630
                Member
                vikas
                  Helpful
                  Up
                  0
                  ::


                  techore

                  @seriousness referenced solution using /etc/environment and inserting QT_QPA_PLATFORMTHEME=qt5ct is the same solution I have used

                  That’s where I am stuck, should i create new environment.config file in the “etc/environment/” cause there is only one file “90qt-a11y.conf”.

                  seriousness’s link says this:

                  2. Add a new line after(what)
                  QT_QPA_PLATFORMTHEME=qt5ct
                  3. Save and reboot.

                  #89634
                  Member
                  seriousness
                    Helpful
                    Up
                    0
                    ::

                    Please post the output of cat /etc/environment

                    • This reply was modified 7 months, 2 weeks ago by seriousness.
                    #89665
                    Member
                    ile
                      Helpful
                      Up
                      0
                      ::

                      The “one file “90qt-a11y.conf”. ” is inside a FOLDER, a directory named /environment.d

                      You want to find the FILE named /environment

                      /etc/environment
                      inside was found text QT_QPA_PLATFORMTHEME=qt5ct, but the settings gui has the warning alert.
                      The same text QT_QPA_PLATFORMTHEME=qt5ct we typed in a second line the same as the first line; it looks the same, but [after save and reboot] it now works to clear the warning alert.

                      #89674
                      Member
                      vikas
                        Helpful
                        Up
                        1
                        ::

                        IT WORKED! IT WORKED! IT WORKED!

                        What a simple solution, i don’t know why i was focusing on environment.d folder when it was always environment file(stupid, read the answer carefully).

                        Thank you seriousness, your answer was pretty clear all along.

                        Thank you ile for explaining so clearly.

                        techore – I didn’t use “export” nor quotes.

                        neither me, by the way thanks for the new command ‘set |grep QT, another addition to my linux dictionary.

                        #89698
                        Member
                        techore
                          Helpful
                          Up
                          0
                          ::

                          @vikas, I saw your response after my post and you confusing the file environment and directory environment.d, but you were in good hands with @seriousness.

                          You probably googled and read something that referenced environment.d and it got stuck in your head. Stuff like that happens to all of us and is part of the learning process.

                          With that being said, you will see many examples of the use of a configuration file and a configuration directory. Generally but not always, you will add your customizations to the directory and leave the file untouched. This is done for a number of reasons including to avoid losing customization due to a package update and configuration files in the directory can be given sensible names to identify their purpose. The /etc/profile file and /etc/profile.d directory is an example.

                          Welcome to antiX and keep asking questions.

                        Viewing 11 posts - 1 through 11 (of 11 total)
                        • You must be logged in to reply to this topic.