2011-01-28 18:09:26 +01:00
|
|
|
# HG changeset patch
|
|
|
|
# User Wolfgang Rosenauer <wr@rosenauer.org>
|
2012-10-09 13:14:08 +02:00
|
|
|
# Parent 5a741476f1d87380057f9fa02c6a580aed6e81ff
|
2011-01-28 18:09:26 +01:00
|
|
|
With openSUSE 11.4 the desktop file name changed from MozillaFirefox to firefox
|
|
|
|
|
|
|
|
diff --git a/browser/components/preferences/advanced.js b/browser/components/preferences/advanced.js
|
|
|
|
--- a/browser/components/preferences/advanced.js
|
|
|
|
+++ b/browser/components/preferences/advanced.js
|
2012-10-09 13:14:08 +02:00
|
|
|
@@ -751,17 +751,17 @@ var gAdvancedPane = {
|
2012-08-28 20:40:50 +02:00
|
|
|
if (kde_session == 1) {
|
|
|
|
var shellObj = Components.classes["@mozilla.org/file/local;1"]
|
|
|
|
.createInstance(Components.interfaces.nsILocalFile);
|
|
|
|
shellObj.initWithPath("/usr/bin/kwriteconfig");
|
|
|
|
var process = Components.classes["@mozilla.org/process/util;1"]
|
|
|
|
.createInstance(Components.interfaces.nsIProcess);
|
|
|
|
process.init(shellObj);
|
|
|
|
var args = ["--file", "kdeglobals", "--group", "General", "--key",
|
|
|
|
- "BrowserApplication", "MozillaFirefox"];
|
|
|
|
+ "BrowserApplication", "firefox"];
|
|
|
|
process.run(false, args, args.length);
|
2011-01-28 18:09:26 +01:00
|
|
|
}
|
2012-10-09 13:14:08 +02:00
|
|
|
let selectedIndex =
|
|
|
|
shellSvc.isDefaultBrowser(false, true) ? 1 : 0;
|
|
|
|
document.getElementById("setDefaultPane").selectedIndex = selectedIndex;
|
2012-08-28 20:40:50 +02:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
};
|