You are not logged in.
Hello everyone,
I'm having the problem that some QT applications don't appear in dark mode as they should. I followed the steps noted in the last reply of this thread:
[Solved] Getting qt5ct and QT5 themes to work
I'll take the example of the 'Strawberry' app, when I open it - it works normally, except for this dark mode issue.
11:06:19.142 INFO main:173 Strawberry 1.2.0-0-ge6607fef Qt "6.8.0"
11:06:19.142 INFO main:174 "Arch Linux unknown - (linux 6.11.3-arch1-1) [x86_64]"
11:06:19.240 INFO main:47 TagReader worker connecting to "/tmp/strawberry_2345064907"
11:06:19.271 INFO Player:1071 Registered URL handler for "subsonic"
11:06:19.272 INFO Player:1071 Registered URL handler for "tidal"
11:06:19.277 INFO Player:1071 Registered URL handler for "qobuz"
11:06:19.391 WARN unknown QColor::fromRgb: RGB parameters out of range
11:06:19.402 WARN unknown QColor::fromRgb: RGB parameters out of range
11:06:19.525 WARN GlobalShortcutsBackendGnome:96 Failed to grab media keys "org.freedesktop.DBus.Error.UnknownMethod" "O objeto não existe no caminho “/org/gnome/SettingsDaemon/MediaKeys”"
I have already installed the qt5-wayland / qt6-wayland packages.
Created an “environment.d” folder in “/etc/environment.d/qt5.conf” and added export QT_QPA_PLATFORMTHEME="qt5ct”. (and I've also tried qt6ct)
But nothing happens, when I open qt6-settings it tells me that the application is not configured correctly and has the message
The QT_QPA_PLATFORMTHEME environment variable is not set (required values: qt6ct or qt5ct)
i've read the wiki and searched several sources, but nothing seems to work. where am i going wrong?
Last edited by FGYada (2024-10-15 14:51:23)
Offline
/etc/environment.d files are not a shell so you don't need the export keyword to export variables. Just QT_QPA_PLATFORMTHEME=qt6ct
Which general environment are you running in and how are you starting it?
Last edited by V1del (2024-10-15 14:47:51)
Online
/etc/environment.d files are not a shell so you don't need the export keyword to export variables. Just QT_QPA_PLATFORMTHEME=qt6ct
Which general environment are you running in and how are you starting it?
I don't know if I understood the question correctly, but I'm using wayland.
But... It worked!!!! Thank you very much!
Offline
Yeah but which wayland? If hyprland or sway or so I'd see the need for qt6ct, on GNOME/KDE you're potentially breaking more than you're fixing.
Also grr at the shitGPT generated garbage that is the last reply in that thread you have your original attempt from...
Last edited by V1del (2024-10-15 15:01:58)
Online
Yeah but which wayland? If hyprland or sway or so I'd see the need for qt6ct, on GNOME/KDE you're potentially breaking more than you're fixing.
Gnome 47. Well, at least in what I tested - for now, everything worked as I expected -. Do you recommend a test or something I can keep an eye on to see if something has broken (or will I find out the hard way)?
Also grr at the shitGPT generated garbage that is the last reply in that thread you have your original attempt from...
I don't really know how to judge this, because as the post was marked as solved, I understood that it had worked for someone.
Last edited by FGYada (2024-10-15 15:52:23)
Offline