Qutebrowser: Handling opening of unknown schemes

Created on 20 Jul 2017  路  4Comments  路  Source: qutebrowser/qutebrowser

Some discussion in IRC:

  • There should probably be a setting for a whitelist of schemes allowed to be opened without prompting (as a per-domain setting)
  • Currently there's no prompt at all with QtWebEngine, but at least it only allows opening unknown links after an user gesture.
  • Also see QTBUG-58627
  • Maybe a QWebEngineUrlRequestJob can be abused to at least handle magnet:// links for QtWebEngine?
2 - low

Most helpful comment

In the meantime e.g. following a magnet link leads to an error page (ERR_UNKNOWN_URL_SCHEME). From there, users can pass the url to an external application with :spawn. On linux :spawn xdg-open {url} should work. Otherwise, call the application directly, e.g. :spawn transmission-gtk {url}.

If this is the wrong place for that type of comment, please let me know.

All 4 comments

In the meantime e.g. following a magnet link leads to an error page (ERR_UNKNOWN_URL_SCHEME). From there, users can pass the url to an external application with :spawn. On linux :spawn xdg-open {url} should work. Otherwise, call the application directly, e.g. :spawn transmission-gtk {url}.

If this is the wrong place for that type of comment, please let me know.

As a workaround, I currently use the following bindings for the Transmission daemon:

config.bind(',t', 'hint links spawn transmission-remote -a {hint-url}')
config.bind(',T', 'hint -r links spawn transmission-remote -a {hint-url}')

This way I can keyboard-select the magnet links, it's usually fast enough.

As pointed out in IRC, on https://www.archlinux.org/download/ following the link via :follow-selected works, while :hint does not.

We can't display a confirmation dialog like we could with QtWebKit, but now following external links via hints should work fine again!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

The-Compiler picture The-Compiler  路  4Comments

orangecms picture orangecms  路  3Comments

The-Compiler picture The-Compiler  路  3Comments

mhep picture mhep  路  3Comments

agguser picture agguser  路  4Comments