Репозитории ALT
S: | 118.0-alt1 |
4.1: | 3.0.9-alt0.M41.1 |
+updates: | 3.0.4-alt0.M41.2 |
4.0: | 2.0.0.18-alt0.M40.1 |
3.0: | 1.0.7-alt3 |
+updates: | 1.0.8-alt0.M30.1 |
Группа :: Сети/WWW
Пакет: firefox
Главная Изменения Спек Патчи 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
diff --git a/mozilla/browser/base/content/nsContextMenu.js b/mozilla/browser/base/content/nsContextMenu.js
index 53bc215..725990b 100644
--- a/mozilla/browser/base/content/nsContextMenu.js
+++ b/mozilla/browser/base/content/nsContextMenu.js
@@ -317,7 +317,9 @@ nsContextMenu.prototype = {
if (AppConstants.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;
}