Deepin-desktop: chromium: xdg-email: no method available for opening 'mailto:'

It didn’t work for me :confused:

The issue seems to be related to the xdg-email script, as you already pointed out. Chromium uses this script as a handler for opening mailto links. I think that for some reason your DE (Deepin) is not recognized by xdg-email or its value is getting overwritten (?).

After searching, I found a possible solution in the Arch Forums: (post #4 of the thread)

This approach suggests ‘hacking’ the xdg-email script located in the /usr/bin/ directory. This is not a very elegant solution, since this file will get overwritten when the package xdg-utils gets upgraded to a new version, but it might work.
I tested this, using DE=“gnome3” in my system (XFCE) works as expected.

Another approach would be using xdg-open instead of xdg-email for opening mailto links in Chromium. First you have to confirm that xdg-open works. xdg-open should open the default email client (Thunderbird in this case), just like xdg-email would.

If xdg-open works, you can try out this tutorial from the Arch Forums:
Bare in mind that this is an old tutorial, so the provided information might be outdated or invalid (I didn’t test it).

$ xdg-email
xdg-email: no method available for opening ''
$ xdg-open
main.go:63: openFile: ""
main.go:70: stat /home/user/ no such file or directory

I will investigate the info you provided. Thank you :wink:

1 Like

This probably means that xdg-open is trying to open this MIME type as a file or directory.
Maybe this will work:
xdg-open ''
xdg-open ''

1 Like

Editing the xdg-email file worked for me, so this is a bug.

1 Like

Using xdg-open works without changing any file, so it seems like a plausible fix for Chromium.

Thank you :slight_smile:

1 Like

I fixed the bug myself upstream :stuck_out_tongue:

1 Like

Great work on that! :+1:

My first thought was something not working correctly in the open_generic() function of the script, but obviously I was wrong.

I would suggest changing the solution to your latest post, this way it will be less confusing for users who read the topic. :slightly_smiling_face:

No, as your response is the work-around :upside_down_face:

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.

This is a follow up of this closed thread:

Basically if you run xdg-email "someuser@someemail.tld in Manjaro Deepin and it gives you

xdg-email: no method available for opening 'mailto:'

what you should do is edit the file /usr/bin/xdg-email and under the line "DEEPIN|Deepin|deepin)" change the variable "DE" to "gnome".

This fixed my issue.

What I want is for other users to not have to make this manual fix.

Have a good day

Sounds like a bug in DeepinDE which you should report to the developers?

As @es20490446e already mentioned, this issue was reported to freedesktop and deepin and the bug was fixed in commit 56991bc165577f011f9ad7ca721c5a5134710e33 in xdg-utils
Credit for the report and the fix belong to @es20490446e.

I think this fix will be included in the next release of xdg-utils.

1 Like

That has been several months ago, I will check that everything is fine with the updates.

1 Like

Reported on Arch Linux.

Closed upstream without giving a reason. I have asked the closer.

Ah, sorry. I needed to flag the package instead.

Done here.

I don't really know how much clearer it could be:


Ummm, it seems that the problem is rather that the software takes plenty of time to see a stable release upstream.

I will talk with them about releasing more often.

The patch you wrote has an issue identified by one of the Deepin developers:

which you appear to have ignored, and then unsubscribed from your own bug report? Or is it fixed elsewhere?

Is there a patch set which represents the actual difference between 1.1.3 and the updated files?

The fixed it afterwards.

Which most likely won't have any consequences, because that was for supporting a very old Deepin. Unlikely to have a modern xdg-utils and a quite old deepin.

That's why I removed that to begin with.