forked from mirrors/nixpkgs
* Set the Chrome icon in its desktop item.
svn path=/nixpkgs/trunk/; revision=29701
This commit is contained in:
parent
57f482e2c3
commit
ee74cf87dc
|
@ -1,7 +1,5 @@
|
|||
{ stdenv, browser, makeDesktopItem, makeWrapper, plugins
|
||||
, browserName ? "firefox"
|
||||
, desktopName ? "Firefox"
|
||||
, nameSuffix ? ""
|
||||
, browserName, desktopName, nameSuffix, icon
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
|
@ -10,7 +8,7 @@ stdenv.mkDerivation {
|
|||
desktopItem = makeDesktopItem {
|
||||
name = browserName;
|
||||
exec = browserName;
|
||||
icon = "${browser}/lib/${browser.name}/icons/mozicon128.png";
|
||||
icon = icon;
|
||||
comment = "";
|
||||
desktopName = desktopName;
|
||||
genericName = "Web Browser";
|
||||
|
|
|
@ -6303,7 +6303,10 @@ let
|
|||
patchelf = patchelf06;
|
||||
};
|
||||
|
||||
chromeWrapper = wrapFirefox { browser = chrome; browserName = "chrome"; desktopName = "Chrome"; };
|
||||
chromeWrapper = wrapFirefox
|
||||
{ browser = chrome; browserName = "chrome"; desktopName = "Chrome";
|
||||
icon = "${chrome}/libexec/chrome/product_logo_48.png";
|
||||
};
|
||||
|
||||
cinelerra = callPackage ../applications/video/cinelerra {
|
||||
inherit (gnome) esound;
|
||||
|
@ -7446,9 +7449,10 @@ let
|
|||
wordnet = callPackage ../applications/misc/wordnet { };
|
||||
|
||||
wrapFirefox =
|
||||
{ browser, browserName ? "firefox", desktopName ? "Firefox", nameSuffix ? "" }:
|
||||
{ browser, browserName ? "firefox", desktopName ? "Firefox", nameSuffix ? ""
|
||||
, icon ? "${browser}/lib/${browser.name}/icons/mozicon128.png" }:
|
||||
import ../applications/networking/browsers/firefox/wrapper.nix {
|
||||
inherit stdenv makeWrapper makeDesktopItem browser browserName desktopName nameSuffix;
|
||||
inherit stdenv makeWrapper makeDesktopItem browser browserName desktopName nameSuffix icon;
|
||||
plugins =
|
||||
let
|
||||
enableAdobeFlash = getConfig [ browserName "enableAdobeFlash" ] true;
|
||||
|
|
Loading…
Reference in a new issue