2011-01-28 18:09:26 +01:00
|
|
|
# HG changeset patch
|
|
|
|
# User Wolfgang Rosenauer <wr@rosenauer.org>
|
2014-12-02 23:01:52 +01:00
|
|
|
# Parent a5921092e6fb2dc39b1426139eb8406f5fd3cfa9
|
2011-01-28 18:09:26 +01:00
|
|
|
With openSUSE 11.4 the desktop file name changed from MozillaFirefox to firefox
|
|
|
|
|
2014-12-02 23:01:52 +01:00
|
|
|
diff --git a/browser/components/preferences/main.js b/browser/components/preferences/main.js
|
|
|
|
--- a/browser/components/preferences/main.js
|
|
|
|
+++ b/browser/components/preferences/main.js
|
|
|
|
@@ -511,17 +511,17 @@ var gMainPane = {
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
} catch (ex) {
|
|
|
|
Components.utils.reportError(ex);
|
|
|
|
return;
|
2011-01-28 18:09:26 +01:00
|
|
|
}
|
2012-10-09 13:14:08 +02:00
|
|
|
let selectedIndex =
|
|
|
|
shellSvc.isDefaultBrowser(false, true) ? 1 : 0;
|