I want to use the dark cosmic theme with kweather from flatpak. I've tried lots of stuff, but I don't understand how to determine what is a valid theme from terminal, or how to add to use it with a flatpak.
I want to use the dark cosmic theme with kweather from flatpak. I've tried lots of stuff, but I don't understand how to determine what is a valid theme from terminal, or how to add to use it with a flatpak.
I finally looked at the source for kweather, and saw
if (qEnvironmentVariableIsEmpty("QT_QPA_PLATFORMTHEME")) {
qputenv("QT_QPA_PLATFORMTHEME", "kde");
}
I tried
export QT_QPA_PLATFORMTHEME=qt6ct
After installing qt6ct and configuring it. It didn't work. I don't really think this is going to be easily resolvable if it's possible. The app looks mostly good, so I'm just not going to worry about it.
The QT theme can be set under cosmic. I think it's some kind of issue with using qt6ct with flatpak. If I install qbittorrent through apt install qbittorrent then add
alias qbittorrent="export QT_QPA_PLATFORMTHEME=qt6ct; /usr/bin/qbittorrent"
To my ~/.bashrc file, then I can launch qbittorrent with the settings from qt6ct when using qbittorrent from cosmic-term.
This doesn't change qbittorrent in the applications launcher. I think that requires changing the .desktop file. I haven't been able to determine how to launch qbittorrent with qt6ct with the version from flatpak yet.
edit: If this fails, it's usually because qbittorrent was already running. I'm able to have it work consistently by opening the "System Monitor" and killing all processes under qbittorrent then laucnhing it from cosmic-term.
edit: I found out later that editing ~/.profile with exports is more frequently recommended. I haven't tested it, but I just used the discouraged system wide /etc/environment file. This works for the other shortcut like ways to open files. The reason I used the /etc/environment was because I didn't really care, and also wanted to fix the mouse and resolution issues I was having that I found very annoying.
I guess I might end facing consequences for it sometime? I don't know, I think the worse I'm expecting is that it just applies automatically to new users, but I guess I'll find out...