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>
This commit is contained in:
aszlig 2014-04-27 16:39:11 +02:00
parent e590c0a867
commit d8f8f31726
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961

View File

@ -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"
'';