#996647 /usr/bin/xdg-email: Re: xdg-utils: xdg-email doesn't work with Debian's Thunderbird wrapper script

#996647#5
Date:
2021-10-16 19:24:02 UTC
From:
To:
Dear Maintainer,

I installed Thunderbird and made it as my default mail program in the
KDE Settings.
In libreoffice, the default emailer is set to sensible-lomua, the
wrapper script which calls xdg-email. xdg-email searches his default
settings in the KDE settings I made before.
When I want to send an email directly in Libreoffice, that one calls
xdg-email which should call thunderbird, but instead I got:
/usr/bin/xdg-email: 599: thunderbird.desktop: not found

This is normal, as thunderbird.destop is not in a directroy of my PATH.

I reported this as an error to the maintainer of libreoffice, but he
said that this is a bug caused by xdg-email.

In fact, I chose thunderbird in the settings of KDE by it's icon, which
is proposed.
When I chose it directly as /bin/thunderbird, I got this error message too.


To get it work, I hardcoded in the xdg-email Script the variable
THUNDERBIRD by "/bin/thunderbird" in line 558.
This works, but is an ugly workaround.

Can you help, please.

Thanx

#996647#10
Date:
2024-01-25 05:44:35 UTC
From:
To:
Dear Maintainer,

xdg-email with Thunderbird as default email tools fails.

xdg-email reports on start:
$ xdg-email:
/usr/bin/xdg-email: 599: thunderbird.desktop: not found

#996647#15
Date:
2024-01-25 06:04:13 UTC
From:
To:
I believe this bug due to bug in open_kde function in xdg-email file.

kreadconfig5 reports that configured "thunderbird.desktop" tool.
Obviously this is not a executable file.

This cound be fixed by adding one line to xdg-email:

             if echo "$client" | grep -Eq 'thunderbird|icedove'; then
this line >     client=`desktop_file_to_binary "$client"`
                 run_thunderbird "$client" "$1"
             fi

Best regards
Vasiliy Shlykov

#996647#20
Date:
2024-09-12 01:38:55 UTC
From:
To: