Add update-desktop-database calls (#194645)

* Add update-desktop-database calls

* Fix symbol
This commit is contained in:
Raymond Zhao
2023-10-05 01:52:25 -07:00
committed by GitHub
parent 78fe2e464c
commit 4aaab19f69
2 changed files with 11 additions and 0 deletions

View File

@@ -5,6 +5,11 @@
rm -f /usr/bin/@@NAME@@
# Uninstall the desktop entry
if hash update-desktop-database 2>/dev/null; then
update-desktop-database
fi
# Update mimetype database for removed workspace mimetype
if hash update-mime-database 2>/dev/null; then
update-mime-database /usr/share/mime