From 5150255146bd1abbad901a3b2881ab90a2130d1a Mon Sep 17 00:00:00 2001 From: Paul Grandperrin Date: Tue, 1 Feb 2022 13:55:03 +0100 Subject: [PATCH] (vscode|vscodium)-fhs: fix missing desktop icon --- pkgs/applications/editors/vscode/generic.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/editors/vscode/generic.nix b/pkgs/applications/editors/vscode/generic.nix index 72c753745168..45a86a73d029 100644 --- a/pkgs/applications/editors/vscode/generic.nix +++ b/pkgs/applications/editors/vscode/generic.nix @@ -161,12 +161,9 @@ let krb5 ]) ++ additionalPkgs pkgs; - # restore desktop item icons + # symlink shared assets, including icons and desktop entries extraInstallCommands = '' - mkdir -p "$out/share/applications" - for item in ${unwrapped}/share/applications/*.desktop; do - ln -s "$item" "$out/share/applications/" - done + ln -s "${unwrapped}/share" "$out/" ''; runScript = "${unwrapped}/bin/${executableName}";