Commit ce4208ad authored by Ray Strode's avatar Ray Strode

main: allow users to override QT_QPA_PLATFORMTHEME

commit 971baf2e 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.
parent 890a797a
......@@ -415,7 +415,9 @@ main (int argc, char **argv)
/* Tell Qt to try to make Qt applications look like gnome
gsm_util_setenv ("QT_QPA_PLATFORMTHEME", "qgnomeplatform");
if (g_getenv ("QT_QPA_PLATFORMTHEME") == NULL) {
gsm_util_setenv ("QT_QPA_PLATFORMTHEME", "qgnomeplatform");
/* hack to fix keyring until we can reorder things in 3.20
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment