From 718d22a2bb24931b31956157d227349d3ba978cc Mon Sep 17 00:00:00 2001 From: shawayusx Date: Sun, 29 Mar 2020 00:36:53 +0530 Subject: [PATCH 1/2] Adds to isntall.sh --- build/linux/dist/install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build/linux/dist/install.sh b/build/linux/dist/install.sh index 0fa79ea5003..01f4ffe69be 100755 --- a/build/linux/dist/install.sh +++ b/build/linux/dist/install.sh @@ -205,6 +205,14 @@ simple_uninstall_f() { # Update desktop file and mime databases (if possible) updatedbs_f() { + if [ if "${HOME}/root/.config/mimeapps.list"] + then + continue + else + touch mimeapps.list + chmod +x mimeapps.list + fi + if [ -d "${HOME}/.local/share/applications" ]; then if command -v update-desktop-database > /dev/null; then update-desktop-database "${HOME}/.local/share/applications" From aa8693e424ceb3e31ba5e01568522f1785643995 Mon Sep 17 00:00:00 2001 From: shawayusx Date: Mon, 30 Mar 2020 12:42:53 +0530 Subject: [PATCH 2/2] changes as requested --- build/linux/dist/install.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/build/linux/dist/install.sh b/build/linux/dist/install.sh index 01f4ffe69be..473d39908c0 100755 --- a/build/linux/dist/install.sh +++ b/build/linux/dist/install.sh @@ -205,10 +205,7 @@ simple_uninstall_f() { # Update desktop file and mime databases (if possible) updatedbs_f() { - if [ if "${HOME}/root/.config/mimeapps.list"] - then - continue - else + if [ ! -f "${HOME}/root/.config/mimeapps.list" ]; then touch mimeapps.list chmod +x mimeapps.list fi