<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Does Linux have a configurable HTTP/S scheme handler?]]></title><description><![CDATA[<p dir="auto">Before I go off an write something myself, many things we open from our apps are HTTP/S URLs and they go straight to the browser. On Android, it's possible to assign apps to certain domains. I know I could write a script to do the same in linux, but my question is if there is a solution that already does this.</p>
<p dir="auto">For those who don't know how, here's a <a href="https://superuser.com/questions/162092/how-can-i-register-a-custom-protocol-with-xdg" rel="nofollow ugc">superuser page</a> that explains how to handle custom protocols.</p>
<p dir="auto">This is what I use for now to open videos directly in <code>mpv</code> instead of a browser</p>
<p dir="auto"><strong>~/bin/open-http.sh</strong></p>
<pre><code class="language-sh">#!/usr/bin/env bash
set -eu
# install with `xdg-mime default http-handler.desktop x-scheme-handler/http`
#              `xdg-mime default http-handler.desktop x-scheme-handler/https`
# is https and supported by yt-dlp
if [[ "$1" == "https://"* ]] &amp;&amp; yt-dlp --simulate "$1" ; then
    exec mpv "$1"
else
    librewolf "$1" 
fi
</code></pre>
<p dir="auto"><strong>http-handler.desktop</strong></p>
<pre><code class="language-desktop">[Desktop Entry]
Comment=
Exec=~/bin/open-http.sh %u
MimeType=x-scheme-handler/https;
Name=HTTP Scheme Handler
NoDisplay=false
Path=
PrefersNonDefaultGPU=false
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=
</code></pre>
<p dir="auto">A GUI or just config file would be great.</p>
]]></description><link>https://forum.ieu.app/topic/a2f59c51-3eae-4791-9e96-314a6f87cb22/does-linux-have-a-configurable-http-s-scheme-handler</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Sep 2026 17:59:17 GMT</lastBuildDate><atom:link href="https://forum.ieu.app/topic/a2f59c51-3eae-4791-9e96-314a6f87cb22.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Aug 2026 09:30:40 GMT</pubDate><ttl>60</ttl></channel></rss>