Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 61779edcd4f54f0400911c5ea2d89821 > files > 47

mozilla-firefox-2.0.0.16-2mdv2009.0.src.rpm

--- mozilla/chrome/src/nsChromeRegistry.cpp~	2006-06-19 00:45:32.000000000 +0200
+++ mozilla/chrome/src/nsChromeRegistry.cpp	2006-11-15 14:50:17.000000000 +0100
@@ -484,7 +484,17 @@
     return NS_ERROR_FAILURE;
 
   mSelectedLocale = NS_LITERAL_CSTRING("en-US");
-  mSelectedSkin = NS_LITERAL_CSTRING("classic/1.0");
+  if (getenv("KDE_FULL_SESSION")) {
+        mSelectedSkin = NS_LITERAL_CSTRING("kdestripe/0.2");
+  }
+  else { if (getenv("GNOME_DESKTOP_SESSION_ID")) {
+         mSelectedSkin = NS_LITERAL_CSTRING("gnomestripe/0.3");
+       }
+       else
+         {
+        mSelectedSkin = NS_LITERAL_CSTRING("classic/1.0");
+         }
+  }
 
   // This initialization process is fairly complicated and may cause reentrant
   // getservice calls to resolve chrome URIs (especially locale files). We
--- mozilla/browser/app/profile/firefox.js~	2006-11-15 14:47:33.000000000 +0100
+++ mozilla/browser/app/profile/firefox.js	2006-11-15 14:53:54.000000000 +0100
@@ -161,7 +161,8 @@
 pref("keyword.URL", "chrome://browser-region/locale/region.properties");
 
 pref("general.useragent.locale", "@AB_CD@");
-pref("general.skins.selectedSkin", "classic/1.0");
+// don't set default theme to get environment autodetection
+// pref("general.skins.selectedSkin", "classic/1.0");
 pref("general.useragent.extra.firefox", "@APP_UA_NAME@/@APP_VERSION@");
 
 pref("general.smoothScroll", false);