mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
Update desktop file cache in Debian package postinst
This commit is contained in:
parent
6759fe1c8c
commit
3914b9bda5
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue