Группа :: Сети/WWW
Пакет: firefox-esr
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: firefox-cross-desktop.patch
Скачать
Скачать
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);