The QT_QPA_PLATFORMTHEME is not set

i get this

image

cat /etc/environment.d/qt5.conf                                                                                                                                  
export QT_QPA_PLATFORMTHEME="qt5ct"

what i am doing wrong?

can’t copy/paste from screenshot

(required values: qt6ct or qt5ct)

Hasn’t there been a change from QT5 to QT6 recently?
so: try the other one …?

When/where do you get this?

The syntax is wrong.
/etc/environment accepts KEY=VALUE entries.
(delete the export )

opening qt5ct

nothing changes

Did you reboot?

yes i did reboot

Having looked at it in two different VM’s (Plasma and Xfce4)
I don’t even have anything there in /etc/environment in either one
opening qt5ct
works in Xfce4 (and is not needed in Plasma, I guess - the command isn’t even present)

Here on xfce in /etc/environment, mine looks as follows and all is fine. I no longer get the message that the OP has:

QT_QPA_PLATFORMTHEME="qt6ct"

Apparently doing the environment.d does not work it needs to be done directly on environment

indeed

cat /etc/environment 
#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#

This, in turn, can be configured here:

/etc/security/pam_env.conf

A better place for this is .profile, or .bash_profile.

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.