Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37705189
en ru br
ALT Linux repos
S:115.3.1-alt1

Group :: Networking/WWW
RPM: firefox-esr

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: firefox-cross-desktop.patch
Download


From: Wolfgang Rosenauer
Subject: NonGnome/KDE integration
References:
https://bugzilla.novell.com/show_bug.cgi?id=170055
Caveats: desktop file name of Firefox is hardcoded to MozillaFirefox
--- mozilla/browser/base/content/nsContextMenu.js.fix16	2012-07-29 01:21:31.000000000 +0400
+++ mozilla/browser/base/content/nsContextMenu.js	2012-07-29 01:23:23.000000000 +0400
@@ -265,9 +265,11 @@ nsContextMenu.prototype = {
     var haveSetDesktopBackground = false;
 #ifdef HAVE_SHELL_SERVICE
     // Only enable Set as Desktop Background if we can get the shell service.
     var shell = getShellService();
-    if (shell)
+    var env = Components.classes["@mozilla.org/process/environment;1"]
+                        .getService(Components.interfaces.nsIEnvironment);
+    if (shell && env.get('DESKTOP_SESSION') == "gnome")
       haveSetDesktopBackground = shell.canSetDesktopBackground;
 #endif
     this.showItem("context-setDesktopBackground",
                   haveSetDesktopBackground && this.onLoadedImage);
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin