On Tue Nov 5, 2024 at 4:08 AM GMT, Stefan Monnier wrote:
> Someone mentioned NetSurf recently here and I'm trying it out.
> It's an interesting "halfway" point between TUI browsers like Lynx/EWW,
> and monsters like Firefox.
>
> But I'd like to be able to send URLs to NetSurf and can't figure out how
> to do it.  Am I missing something?  Say you'd like to install it as your
> default browser: how would you get it to open a new tab in an existing
> window when, e.g. `xdg-open` needs it?

There isn't a single consistent way of specifying a default browser
across Debian. But, you mention `xdg-open`, and most applications use
the XDG MIME scheme.

To configure that, take a look at the xdg-mime(1) manpage, and related
docs. Some hints (values from my own machine):

    $ xdg-mime query default x-scheme-handler/http
    userapp-Firefox-8JP4U1.desktop
    $ xdg-mime query default text/html
    firefox.desktop
    # doesn't match! let's fix it
    $ xdg-mime default userapp-Firefox-8JP4U1.desktop text/html
    $ xdg-mime query default text/html
    userapp-Firefox-8JP4U1.desktop

You probably want to set a bunch of different and related MIME types to
a default browser. Check ~/.config/mimeapps.list to build a list. You
specify the application in terms of a .desktop file; I see netsurf-gtk
provides one.

Some other apps use the much older mailcap system (mutt I think is one);
See /etc/mailcap, update-mime(8), run-mailcap(1) (which is also the man
page for edit, view, see, compose and print)




-- 
Please do not CC me for listmail.

👱🏻      Jonathan Dowland
✎        j...@debian.org
🔗       https://jmtd.net

Reply via email to