Bug #17563

Bitcoin URI doesn't open in Electrum

Added by sajolida 2020-03-26 21:56:57 . Updated 2020-03-28 07:30:32 .

Status:
Confirmed
Priority:
Normal
Assignee:
Category:
Target version:
Start date:
Due date:
% Done:

0%

Feature Branch:
Type of work:
Code
Blueprint:

Starter:
Affected tool:
Browser
Deliverable for:

Description

We have one on our website but it doesn’t open in Electrum: https://tails.boum.org/donate/ (click on the bitcoin QR Code). Though it seems like Electrum supports opening bitcoin URI.

Fixing would make it a tiny easier to donate to Tails. For example, while working on Feature #17562.


Subtasks


Related issues

Related to Tails - Feature #17562: Have an incentive to donate to Tails from Electrum in Tails Confirmed
Related to Tails - Feature #15678: Improve UX of saving downloaded files from Tor Browser Confirmed 2018-03-27

History

#1 Updated by sajolida 2020-03-26 21:57:09

  • related to Feature #17562: Have an incentive to donate to Tails from Electrum in Tails added

#2 Updated by intrigeri 2020-03-27 10:55:54

  • related to Feature #15678: Improve UX of saving downloaded files from Tor Browser added

#3 Updated by intrigeri 2020-03-27 10:57:17

  • Status changed from New to Confirmed
  • Affected tool set to Browser

Hi,

> We have one on our website but it doesn’t open in Electrum: https://tails.boum.org/donate/ (click on the bitcoin QR Code). Though it seems like Electrum supports opening bitcoin URI.

I’ve tested this outside of Tails (Debian sid):

  • Chromium: I’m offered to open the link with xdg-open; after accepting, Electrum starts as expected
  • Firefox 74.0: I’m offered to open the link with Electrum; after accepting, Electrum starts as expected

So it looks like a Tails-specific problem ⇒ adjusting metadata accordingly.

On the Tails side, that’s because we don’t allow Tor Browser to run external programs.
I believe that the technical solution we have in mind for Feature #15678 could fix this.
But perhaps it’s too much of a guess to broaden the scope of Feature #15678 to “running external programs”.

#4 Updated by sajolida 2020-03-27 19:42:19

> On the Tails side, that’s because we don’t allow Tor Browser to run external programs.

Then if I understand correctly, this wouldn’t affect the popup that we
would create for Feature #17562 (using zenity, Python, or whatever).

#5 Updated by intrigeri 2020-03-28 07:30:32

> Then if I understand correctly, this wouldn’t affect the popup that we would create for Feature #17562 (using zenity, Python, or whatever).

As long as it’s not run via a link from an app that we confine strictly with AppArmor, technically that wrapper around electrum (which displays the popup) could:

  • either display a link pointing to bitcoin:1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2, which I guess should work
  • or directly run electrum bitcoin:1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2 as a consequence of user interaction