'cause it's no polite at all, to change and force user environment
variables, without any option ti change them....

added a check about env var already present


(plus Env vars done message was out of sequence)

(and btw 'gtk2' i think is no more a correct value, for qt5, but i'm not
sure about that)
--- enlightenment_GIT/enlightenment/src/bin/e_main.c    2016-10-06 
22:52:18.259799070 +0200
+++ enlightenment_GIT_20161007/enlightenment/src/bin/e_main.c   2016-10-07 
19:25:05.067973536 +0200
@@ -335,7 +335,6 @@
         e_util_env_set("SSH_ASKPASS", strshare);
         eina_stringshare_del(strshare);
      }
-   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  
*/
@@ -350,8 +349,13 @@
    /* 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");
-   e_util_env_set("QT_STYLE_OVERRIDE", "gtk2");
+   if (!getenv("QT_QPA_PLATFORMTHEME"))
+     {
+        e_util_env_set("QT_QPA_PLATFORMTHEME", "gtk2");
+        e_util_env_set("QT_STYLE_OVERRIDE", "gtk2");
+     }
+
+   TS("Environment Variables Done");
 
    TS("Parse Arguments");
    _e_main_parse_arguments(argc, argv);
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to