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