summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMladen Milinkovic <maxrd2@smoothware.net>2021-08-05 23:48:40 +0200
committerMladen Milinkovic <maxrd2@smoothware.net>2021-08-05 23:48:40 +0200
commit1a58bc28f6844898532daf9ee1bf6da7764955a9 (patch)
tree494abe8532fc9194396a2c18ef599a0d8a999fbb
parentd11b33ec7f24cfb1546f6b459611d440013bdc72 (diff)
xdg-email fails on kde with desktop files #187
-rw-r--r--scripts/xdg-email.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/xdg-email.in b/scripts/xdg-email.in
index 6db58ad..85cf90a 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"