fixed:解决安装卸载deb时报错:application/vnd.debian.binary-package,application/octet-stream is an invalid MIME type
This commit is contained in:
parent
a3823190e7
commit
07116d7e63
|
@ -13,8 +13,9 @@ ln -s /opt/apps/@@NAME@@/bin/@@NAME@@ /usr/bin/@@NAME@@
|
|||
update-alternatives --install /usr/bin/editor editor /usr/bin/@@NAME@@ 0
|
||||
|
||||
# Install the desktop entry
|
||||
if hash update-desktop-database 2>/dev/null; then
|
||||
update-desktop-database
|
||||
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
|
||||
fi
|
||||
|
||||
# Update mimetype database to pickup workspace mimetype
|
||||
|
|
|
@ -5,11 +5,6 @@
|
|||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue