GNOME Bugzilla – Bug 762681
main: tell Qt applications to look like GNOME
Last modified: 2016-10-24 14:00:42 UTC
If the user is logging into GNOME then QT applications run in the session should integrate as good as possible. According to KDE folks, the best way to achieve that is to set QT_QPA_PLATFORMTHEME="qgnomeplatform" This commit does that.
Created attachment 322379 [details] [review] main: tell Qt applications to look like GNOME
Attachment 322379 [details] pushed as 971baf2 - main: tell Qt applications to look like GNOME
(In reply to Ray Strode [halfline] from comment #2) > Attachment 322379 [details] pushed as 971baf2 - main: tell Qt applications > to look like GNOME Is it possible to override that environment variable? Exporting it from ~/.profile (in X11 session) does not work, neither does pam_env.so + ~/.pam_environment.
you'd have to run org.gnome.SessionManager.SetEnv over the session bus from an autostart file (with gdbus or qdbus or whatever). i'll just add a if (g_getenv ("QT_QPA_PLATFORMTHEME") == NULL) over the call so your ~/.pam_environment change will work.
Created attachment 325119 [details] [review] main: allow users to override QT_QPA_PLATFORMTHEME commit 971baf2e225abc5a67bd0c149f4cbfdb0ef8c549 added code to make Qt applications look like GNOME ones. That makes it impossible for users to use custom platform themes though. This commit addresses the problem by only setting QT_QPA_PLATFORMTHEME if it isn't already set.
Attachment 325119 [details] pushed as ce4208a - main: allow users to override QT_QPA_PLATFORMTHEME
Can this be please reverted? We changed this in qgnomeplatform itself and now when Qt detects a gtk based desktop, it tries to load either gtk3 or gnome theme, which will be qgnomeplatform when installed. There is no need to override QT_QPA_PLATFORMTHEME anymore, this even breaks KDE/Plasma when someone logs in from GDM.
okay
Created attachment 338345 [details] [review] Revert "main: tell Qt applications to look like GNOME" This reverts commits: 971baf2e225abc5a67bd0c149f4cbfdb0ef8c549 e833cd1b88ca2107d9ff41f452518934556a5427 ce4208add3b49d440e0c418229774dd802ee6b87
Attachment 338345 [details] pushed as d4b0699 - Revert "main: tell Qt applications to look like GNOME"