Skip to content

Commit

Permalink
Explicitly install desktop entry in deb postinst
Browse files Browse the repository at this point in the history
Fixes #6432
  • Loading branch information
Tyriar committed May 18, 2016
1 parent 345f5ed commit 833be74
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resources/linux/debian/postinst.template
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 833be74

Please sign in to comment.