discomfitor pushed a commit to branch enlightenment-0.20.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=2757ddb4df12b14fdb583a4e881a530380a84d28

commit 2757ddb4df12b14fdb583a4e881a530380a84d28
Author: Simon Lees <si...@simotek.net>
Date:   Mon Dec 28 11:47:49 2015 -0500

    Set QT_QPA_PLATFORM theme to gtk2
    
    Summary:
    @fix the display / customisation of KDE5 apps.
    KDE5 applications don't understand anything other then gnome or kde
    They expect everyone else to set QT_QPA_PLATFORMTHEME to tell them how
    to theme there apps otherwise they use a fallback mode which results in
    missing icons and a inability to change the appearance of applications
    see https://bugzilla.suse.com/show_bug.cgi?id=920792 for more info.
    There are two sensible defaults for this variable, "kde" which will
    make apps appear the same as they do if they are run in kde. and gtk2
    which will make kde applications follow the gtk/gnome theme, we have
    decided on choosing gtk2 as it means that kde/qt apps will follow the
    app and icon theme set in the enlightenment settings dialog. Some users
    who wish to use Qt apps without any gnome or gtk usage may choose to
    install qt5ct and overwrite this variable with qt5ct and use that to
    configure there Qt5 applications.
    
    Reviewers: raster, zmike
    
    Subscribers: jeffhoogland, cedric
    
    Differential Revision: https://phab.enlightenment.org/D3498
---
 src/bin/e_main.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/src/bin/e_main.c b/src/bin/e_main.c
index b4df9a8..71bc654 100644
--- a/src/bin/e_main.c
+++ b/src/bin/e_main.c
@@ -327,6 +327,21 @@ main(int argc, char **argv)
    e_util_env_set("DESKTOP", "Enlightenment");
    TS("Environment Variables Done");
 
+   /* KDE5 applications don't understand anything other then gnome or kde     
*/
+   /* They expect everyone else to set QT_QPA_PLATFORMTHEME to tell them how  
*/
+   /* to theme there apps otherwise they use a fallback mode which results in 
*/
+   /* missing icons and a inability to change the appearance of applications  
*/
+   /* see https://bugzilla.suse.com/show_bug.cgi?id=920792 for more info.     
*/
+   /* There are two sensible defaults for this variable, "kde" which will     
*/
+   /* make apps appear the same as they do if they are run in kde. and gtk2   
*/
+   /* which will make kde applications follow the gtk/gnome theme, we have    
*/
+   /* decided on choosing gtk2 as it means that kde/qt apps will follow the   
*/
+   /* app and icon theme set in the enlightenment settings dialog. Some users 
*/
+   /* who wish to use Qt apps without any gnome or gtk usage may choose to    
*/
+   /* install qt5ct and overwrite this variable with qt5ct and use that to    
*/
+   /* configure there Qt5 applications.                                       
*/
+   e_util_env_set("QT_QPA_PLATFORMTHEME", "gtk2");
+
    TS("Parse Arguments");
    _e_main_parse_arguments(argc, argv);
    TS("Parse Arguments Done");

-- 


Reply via email to