diff --git a/scripts/xdg-email.in b/scripts/xdg-email.in
index 6db58ad3809a19e9eb2846c9412c317e7be4704a..85cf90a12b7e3c2d8a53252d0fea79aaff9aa07d 100644
--- a/scripts/xdg-email.in
+++ b/scripts/xdg-email.in
@@ -98,6 +98,9 @@ open_kde()
                                         --group "PROFILE_$profile" \
                                         --key EmailClient \
                                   | cut -d ' ' -f 1)
+            if [ -z "${client%%*.desktop}" ] && ! which "$client" >/dev/null 2>&1; then
+                client=`desktop_file_to_binary "$client"`
+            fi
 
             if echo "$client" | grep -Eq 'thunderbird|icedove'; then
                 run_thunderbird "$client" "$1"