3

Xubuntu 20.04 LTS

I want to change default XFCE theme for Qt applications. It's set to Fusion style on my app. I read from tutorials that I need kvantum manager and qt5ct

I installed both packages without any problems, both are working fine.

So when it comes to overriding environment variables I placed it in 3 different locations:

  1. .profile
echo "export QT_QPA_PLATFORMTHEME=qt5ct" >> ~/.profile
  1. /etc/environment
cat /etc/environment

[...]

QT_QPA_PLATFORMTHEME=qt5ct

  1. autostart script
# [...]
export QT_QPA_PLATFORMTHEME=qt5ct
  1. .bashrc
# [...]
export QT_QPA_PLATFORMTHEME=qt5ct

I placed it in every location that I know off, still qt5ct is telling me that, it has wrong configuration and QT_QPA_PLATFORMTHEME=gtk2 is still set, so it has default system value as it had. Message from qt5ct

Tell me is it so different in Xubuntu? Because I previously had done that on ArchLinux without any of this issues. Does Ubuntu has some own environment variables file?

2 Answers2

1

you have to go to session settings go to advance and in environment variable add another one and set the name to be QT_QPA_PLATFORMTHEME and the value to qt5ct and then close session settings (make sure it gets save) the next time you reboot qt5ct will work that worked for me at least

sigar
  • 11
0

As outlined in this answer https://askubuntu.com/a/952571, you need to install qt5-style-plugins

sudo apt-get install qt5-style-plugins

and then set QT_QPA_PLATFORMTHEME=qt5ct in /etc/X11/Xsession.d/56xubuntu-session