--- /usr/bin/xdg-mime 2016-07-31 10:57:51.000000000 +0200 +++ /tmp/xdg-mime 2016-11-04 18:12:19.571075353 +0100 @@ -709,7 +709,7 @@ # text/plain=gnome-gedit.desktop;gnu-emacs.desktop; vendor="$1" mimetype="$2" - if [ x"$KDE_SESSION_VERSION" = x"4" ]; then + if [ x"$KDE_SESSION_VERSION" = x"4" ] || [ x"$KDE_SESSION_VERSION" = x"5" ]; then default_dir=`kde4-config --path xdgdata-apps 2> /dev/null | cut -d ':' -f 1` default_file="$default_dir/mimeapps.list" else @@ -724,7 +724,7 @@ DEBUG 1 "Updating $default_file" mkdir -p "$default_dir" [ -f "$default_file" ] || touch "$default_file" - if [ x"$KDE_SESSION_VERSION" = x"4" ]; then + if [ x"$KDE_SESSION_VERSION" = x"4" ] || [ x"$KDE_SESSION_VERSION" = x"5" ]; then [ -f "$default_file" ] || touch "$default_file" awk -v application="$vendor" -v mimetype="$mimetype" ' BEGIN { @@ -783,7 +783,7 @@ } } ' "$default_file" > "${default_file}.new" && mv "${default_file}.new" "$default_file" - eval 'kbuildsycoca4'$xdg_redirect_output + eval 'kbuildsycoca${KDE_SESSION_VERSION}'$xdg_redirect_output else awk -v application="$vendor" -v mimetype="$mimetype" ' BEGIN {