diff --git a/build/linux/dist/install.sh b/build/linux/dist/install.sh
index 0fa79ea5003..473d39908c0 100755
--- a/build/linux/dist/install.sh
+++ b/build/linux/dist/install.sh
@@ -205,6 +205,11 @@ simple_uninstall_f() {
 # Update desktop file and mime databases (if possible)
 updatedbs_f() {
 
+  if [ ! -f "${HOME}/root/.config/mimeapps.list" ]; then
+    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"