--- 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("KDEFF"); + } + else { if (getenv("GNOME_DESKTOP_SESSION_ID")) { + mSelectedSkin = NS_LITERAL_CSTRING("gnome"); + } + 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);