mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
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:
parent
e590c0a867
commit
d8f8f31726
@ -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"
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user