Comment 1 for bug 235128

Revision history for this message
Mariano Draghi (chaghi) wrote : Re: epiphany

It seems that the apturl protocol-handlers are not added to the default preferences, so when clicking on an aptURL, epiphany doesn't know how to handle it (and opens an ugly dialog box asking the user to choose an application).

Adding the correct handlers seems to correct the problem. I added the following lines to /usr/share/epiphany-browser/default-prefs.js

pref("network.protocol-handler.app.apt","/usr/bin/apturl");
pref("network.protocol-handler.warn-external.apt",false);
pref("network.protocol-handler.app.apt+http","/usr/bin/apturl");
pref("network.protocol-handler.warn-external.apt+http",false);

(which I copied from /usr/share/firefox/defaults/pref/apturl.js)