Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37487966
en ru br
Репозитории ALT

Группа :: Сети/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);
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin