From 5da8929599f3253968f8c4e0924f0eb88487f653 Mon Sep 17 00:00:00 2001 From: wangpenglong Date: Tue, 14 Mar 2023 16:15:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=AE=89=E8=A3=85deb?= =?UTF-8?q?=E6=97=B6=E6=8A=A5=E9=94=99:Error=20in=20file=20/usr/share/appl?= =?UTF-8?q?ications/kylin-installer.desktop:=20application/vnd.debian.bina?= =?UTF-8?q?ry-package,application/octet-stream=20is=20an=20invalid=20MIME?= =?UTF-8?q?=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/linux/debian/postinst.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/linux/debian/postinst.template b/resources/linux/debian/postinst.template index 9e91489d..db537e09 100755 --- a/resources/linux/debian/postinst.template +++ b/resources/linux/debian/postinst.template @@ -13,8 +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 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 fi # Update mimetype database to pickup workspace mimetype