Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Retout <tim@retout.co.uk>2021-10-12 01:19:21 +0300
committerTim Retout <tim@retout.co.uk>2021-10-12 01:19:31 +0300
commit3914b9bda5a3abd04813b7afecd8d3b569e9ffe5 (patch)
tree29409a9ecee908ca8ff194006b38233ef7eb91a1 /resources
parent6759fe1c8c605020673ad64f2ad9fb98222b8a43 (diff)
Update desktop file cache in Debian package postinst
Diffstat (limited to 'resources')
-rwxr-xr-xresources/linux/debian/postinst.template5
1 files changed, 2 insertions, 3 deletions
diff --git a/resources/linux/debian/postinst.template b/resources/linux/debian/postinst.template
index 9c49ab29457..9e91489dd14 100755
--- a/resources/linux/debian/postinst.template
+++ b/resources/linux/debian/postinst.template
@@ -13,9 +13,8 @@ ln -s /usr/share/@@NAME@@/bin/@@NAME@@ /usr/bin/@@NAME@@
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
- desktop-file-install /usr/share/applications/@@NAME@@-url-handler.desktop
+if hash update-desktop-database 2>/dev/null; then
+ update-desktop-database
fi
# Update mimetype database to pickup workspace mimetype