xdg-email fails to attach filesnames with a comma "," to thunderbird
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Xdg-utils |
New
|
Unknown
|
|||
xdg-utils (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
When attaching a file to Thunderbird using xdg-email, it passes the full path to Thunderbird, as possible with TB3+. However, the syntax of TB uses the comma "," as filename separator. If a filename already contains a comma, Thunderbird will not find it and fails to attach it.
This could probably be fixed in Thunderbird, but would require them to change their command line syntax which is a big change. A different solution is to change from the "full path" syntax to "file://<path>" using a full URL-encodeing?
Example: the file is located at "/home/
Calling xdg-email with "xdg-email --attach '/home/
/usr/lib/
And Thunderbird expects two files now, one "/home/
/usr/lib/
works.
As it turned out, not much needs to be changed. I created a crude patch to change from "file name scheme" to "uri scheme" against the version below with (for me) solves the issue. Note that I'm not a bash expert, so the solution might give room for improvement.
Some information:
>apt policy xdg-utils
xdg-utils:
Installiert: 1.1.2-1ubuntu2.3
Installations
lsb_release will list Linux Mint Tess (19.1), upstream based on Ubuntu Bionic (hence the bug reported here)
Changed in xdg-utils: | |
status: | Unknown → New |
Thank you for your bug report, could you report it also upstream on https:/ /gitlab. freedesktop. org/xdg/ xdg-utils/ issues ?