firefox-kde-114.patch
changeset 779 354c672efefa
parent 545 fcd8fb7c04dd
equal deleted inserted replaced
778:9483ff78d5a0 779:354c672efefa
     1 # HG changeset patch
     1 # HG changeset patch
     2 # User Wolfgang Rosenauer <wr@rosenauer.org>
     2 # User Wolfgang Rosenauer <wr@rosenauer.org>
     3 # Parent ba2d9b1374e15e7c339a44452169d0afac2ca82e
     3 # Parent a5921092e6fb2dc39b1426139eb8406f5fd3cfa9
     4 With openSUSE 11.4 the desktop file name changed from MozillaFirefox to firefox
     4 With openSUSE 11.4 the desktop file name changed from MozillaFirefox to firefox
     5 
     5 
     6 diff --git a/browser/components/preferences/advanced.js b/browser/components/preferences/advanced.js
     6 diff --git a/browser/components/preferences/main.js b/browser/components/preferences/main.js
     7 --- a/browser/components/preferences/advanced.js
     7 --- a/browser/components/preferences/main.js
     8 +++ b/browser/components/preferences/advanced.js
     8 +++ b/browser/components/preferences/main.js
     9 @@ -751,17 +751,17 @@ var gAdvancedPane = {
     9 @@ -511,17 +511,17 @@ var gMainPane = {
    10      if (kde_session == 1) {
    10        if (kde_session == 1) {
    11        var shellObj = Components.classes["@mozilla.org/file/local;1"]
    11          var shellObj = Components.classes["@mozilla.org/file/local;1"]
    12                                 .createInstance(Components.interfaces.nsILocalFile);
    12                                   .createInstance(Components.interfaces.nsILocalFile);
    13        shellObj.initWithPath("/usr/bin/kwriteconfig");
    13          shellObj.initWithPath("/usr/bin/kwriteconfig");
    14        var process = Components.classes["@mozilla.org/process/util;1"]
    14          var process = Components.classes["@mozilla.org/process/util;1"]
    15                                .createInstance(Components.interfaces.nsIProcess);
    15                                  .createInstance(Components.interfaces.nsIProcess);
    16        process.init(shellObj);
    16          process.init(shellObj);
    17        var args = ["--file", "kdeglobals", "--group", "General", "--key",
    17          var args = ["--file", "kdeglobals", "--group", "General", "--key",
    18 -          "BrowserApplication", "MozillaFirefox"];
    18 -            "BrowserApplication", "MozillaFirefox"];
    19 +          "BrowserApplication", "firefox"];
    19 +            "BrowserApplication", "firefox"];
    20        process.run(false, args, args.length);
    20          process.run(false, args, args.length);
       
    21        }
       
    22      } catch (ex) {
       
    23        Components.utils.reportError(ex);
       
    24        return;
    21      }
    25      }
    22      let selectedIndex =
    26      let selectedIndex =
    23        shellSvc.isDefaultBrowser(false, true) ? 1 : 0;
    27        shellSvc.isDefaultBrowser(false, true) ? 1 : 0;
    24      document.getElementById("setDefaultPane").selectedIndex = selectedIndex;
       
    25    }
       
    26  #endif
       
    27  };