From 833be745fabf7aeb274787deda840becced65fe3 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Tue, 17 May 2016 17:53:42 -0700 Subject: [PATCH] Explicitly install desktop entry in deb postinst Fixes #6432 --- resources/linux/debian/postinst.template | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/linux/debian/postinst.template b/resources/linux/debian/postinst.template index 24540c9ba2b..c09d4c6123a 100755 --- a/resources/linux/debian/postinst.template +++ b/resources/linux/debian/postinst.template @@ -12,6 +12,11 @@ ln -s /usr/share/@@NAME@@/bin/@@NAME@@ /usr/bin/@@NAME@@ # developers would prefer a terminal editor as the default. update-alternatives --install /usr/bin/editor editor /usr/bin/@@NAME@@ 0 +# Install the desktop entry +if hash desktop-file-install 2>/dev/null; then + desktop-file-install /usr/share/applications/@@NAME@@.desktop +fi + if [ "@@NAME@@" != "code-oss" ]; then # Remove the legacy bin command if this is the stable build if [ "@@NAME@@" = "code" ]; then