Final Unicourse'tan Çalış, Yüksek Notu Garantile!
Vizesine Unicourse'tan Çalış, Yüksek Notu Garantile!
Does Linux have a configurable HTTP/S scheme handler?
-
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.
For those who don't know how, here's a superuser page that explains how to handle custom protocols.
This is what I use for now to open videos directly in
mpvinstead of a browser~/bin/open-http.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://"* ]] && yt-dlp --simulate "$1" ; then exec mpv "$1" else librewolf "$1" fihttp-handler.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=A GUI or just config file would be great.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Kayıt Ol Giriş