I configured plasmashell to be started ad a systemd service and I set QT_QPA_PLATFORMTHEME=qt6ct in order to have qt6gtk2 theme for qt6 apps. When I launch qt6ct from the menu I got the error of bad configuration but if I launch qt6ct from the terminal I dont And if I relaunch plasmashell from the terminal kquitapp5 plasmashell; kstart plasmashell qt6ct from the menu works fine. Strange enough not all qt6 apps seems affected. Glaxnimate respect the theme settings, while zint-qt not. I tried to set the variable systemwide in /etc/profiles.d but plasma fails to start.
(In reply to Guido from comment #0) > I configured plasmashell to be started ad a systemd service and I set > > QT_QPA_PLATFORMTHEME=qt6ct Exactly where and how did you set it?
(In reply to Nate Graham from comment #1) > (In reply to Guido from comment #0) > > I configured plasmashell to be started ad a systemd service and I set > > > > QT_QPA_PLATFORMTHEME=qt6ct > Exactly where and how did you set it? in several places... bashrc, fish, .profile, pam...
Does it work if you set it in /etc/environment?
(In reply to Nate Graham from comment #3) > Does it work if you set it in /etc/environment? yes but I had strange behaviour setting it at system level. Sometimes Plasma doesnt start.
That's the right place to set it. Doing this is not formally supported, so if you do, you're on your own. :)
(In reply to Nate Graham from comment #5) > That's the right place to set it. > > Doing this is not formally supported, so if you do, you're on your own. :) I see. It's a systemd fault.