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.
-
AuthorPosts
-
September 22, 2022 at 8:35 am #89516Member
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?
September 22, 2022 at 10:33 am #89521Member
Valter Cardoso
::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 $.
September 23, 2022 at 7:25 am #89575Member
seriousness
September 23, 2022 at 7:40 am #89576Member
blur13
::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”September 24, 2022 at 5:11 am #89622Membervikas
::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:
September 24, 2022 at 6:32 am #89624Member
techore
::@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:
September 24, 2022 at 7:56 am #89630Membervikas
::
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.September 24, 2022 at 11:07 am #89634Member
seriousness
::Please post the output of
cat /etc/environment- This reply was modified 7 months, 2 weeks ago by seriousness.
September 24, 2022 at 7:01 pm #89665Member
ile
::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.September 24, 2022 at 8:53 pm #89674Membervikas
::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.
September 24, 2022 at 10:44 pm #89698Member
techore
::@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.
-
AuthorPosts
- You must be logged in to reply to this topic.

