[gnome-session] main: tell Qt applications to look like GNOME



commit 971baf2e225abc5a67bd0c149f4cbfdb0ef8c549
Author: Ray Strode <rstrode redhat com>
Date:   Thu Feb 25 10:02:16 2016 -0500

    main: tell Qt applications to look like GNOME
    
    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.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=762681

 gnome-session/main.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gnome-session/main.c b/gnome-session/main.c
index 7ec4dc4..3fd2385 100644
--- a/gnome-session/main.c
+++ b/gnome-session/main.c
@@ -411,6 +411,10 @@ main (int argc, char **argv)
          */
         gsm_util_setenv ("XDG_MENU_PREFIX", "gnome-");
 
+        /* Tell QT to try to make QT applications look like gnome
+         */
+        gsm_util_setenv ("QT_QPA_PLATFORMTHEME", "qgnomeplatform");
+
         /* hack to fix keyring until we can reorder things in 3.20
          * https://bugzilla.gnome.org/show_bug.cgi?id=738205
          */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]