ALT Linux Bugzilla
– Attachment 3932 Details for
Bug 21509
не становиться умолчательным браузером, но очень хочет
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
firefox-cross-desktop.patch
firefox-cross-desktop.patch (text/plain), 1.16 KB, created by
Zerg
on 2009-09-23 21:22:11 MSD
(
hide
)
Description:
firefox-cross-desktop.patch
Filename:
MIME Type:
Creator:
Zerg
Created:
2009-09-23 21:22:11 MSD
Size:
1.16 KB
patch
obsolete
>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/browser/base/content/nsContextMenu.js b/browser/base/content/nsContextMenu.js >--- a/browser/base/content/nsContextMenu.js >+++ b/browser/base/content/nsContextMenu.js >@@ -210,13 +210,15 @@ nsContextMenu.prototype = { > // Set as Desktop background depends on whether an image was clicked on, > // and only works if we have a shell service. > 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 = true; > #endif > this.showItem("context-setDesktopBackground", > haveSetDesktopBackground && this.onLoadedImage); > > if (haveSetDesktopBackground && this.onLoadedImage) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 21509
:
3863
|
3864
| 3932 |
3933