exo gobbles mailto: when using custom script as default MailReader
I have Thunderbird installed, and a custom script that wraps it. When I set Thunderbird (vanilla) as my default mail reader, then opening mailto:
URLs causes Thunderbird to start and open a new window for composing the message. This also works if I execute thunderbird mailto:test@example.com
in the terminal.
However, if I set my custom script as the default mail reader (as /path/to/custom/script.sh "%s"
), and if I open a mailto:
URL, such as mailto:test@example.com
, then the script only gets test@example.com
as an argument, without the mailto:
prefix.
Here's an example of a custom script that can showcase this behaviour:
#!/bin/sh
echo $@
thunderbird $@
This will print the argument it gets to the terminal, showing that the mailto:
prefix is stripped.
I'm running exo version 4.16.2 on Arch Linux.