diff options
author | aszlig <aszlig@redmoonstudios.org> | 2014-04-27 16:39:11 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2014-04-27 18:52:28 +0200 |
commit | d8f8f317269d74e7e201051e77e16f7533d1e4b6 (patch) | |
tree | cb10e25eb3a34709e159ba2d35cf064cdc273019 /pkgs | |
parent | e590c0a867e84f3bdf59ff596b763c1d40d3f77f (diff) | |
download | nixlib-d8f8f317269d74e7e201051e77e16f7533d1e4b6.tar nixlib-d8f8f317269d74e7e201051e77e16f7533d1e4b6.tar.gz nixlib-d8f8f317269d74e7e201051e77e16f7533d1e4b6.tar.bz2 nixlib-d8f8f317269d74e7e201051e77e16f7533d1e4b6.tar.lz nixlib-d8f8f317269d74e7e201051e77e16f7533d1e4b6.tar.xz nixlib-d8f8f317269d74e7e201051e77e16f7533d1e4b6.tar.zst nixlib-d8f8f317269d74e7e201051e77e16f7533d1e4b6.zip |
chromium: Fix desktop icon and duplicate entry.
This should fix the desktop icon location for both desktop entries (the one from the Chromium derivation itself and the wrapper) and renames the name of the file so that it gets overridden by the wrappers desktop item so we don't end up having two of them. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/networking/browsers/chromium/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/applications/networking/browsers/chromium/default.nix b/pkgs/applications/networking/browsers/chromium/default.nix index 9e906191afe4..44fd3c69e537 100644 --- a/pkgs/applications/networking/browsers/chromium/default.nix +++ b/pkgs/applications/networking/browsers/chromium/default.nix @@ -39,9 +39,9 @@ let }; desktopItem = makeDesktopItem { - name = "Chromium"; + name = "chromium"; exec = "chromium"; - icon = "chromium"; + icon = "${chromium.browser}/share/icons/hicolor/48x48/apps/chromium.png"; comment = "An open source web browser from Google"; desktopName = "Chromium"; genericName = "Web browser"; @@ -74,6 +74,7 @@ in stdenv.mkDerivation { --set CHROMIUM_SANDBOX_BINARY_PATH "${sandboxBinary}" \ --add-flags "${chromium.plugins.flagsEnabled}" + ln -s "${chromium.browser}/share/icons" "$out/share/icons" cp -v "${desktopItem}/share/applications/"* "$out/share/applications" ''; |