int-ua / openbydomain

Dispatch URLs into different apps by domain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide instructions for making this default browser

cjohnston1158 opened this issue · comments

Should provide common use cases for how to setup this as your default browser

So I started searching for a page with a reasonably exhaustive list and this is the first discovery on the way:

$ xdg-settings get default-web-browser
vim.desktop

:D

It's obviously a bit postponed, draft is using these two URLs for reference:

https://wiki.debian.org/DefaultWebBrowser

https://askubuntu.com/a/282187

Here's what I've done for now:

$ cat /usr/share/applications/openbydomain.desktop 
[Desktop Entry]
Name=openbydomain
Comment=OpenByDomain
GenericName=OpenByDomain
Exec=/home/<user>/code/openbydomain/openbydomain.py %U
StartupNotify=true
Terminal=false
Type=Application
Categories=Network;WebBrowser;
MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/ftp;x-scheme-handler/http;x-scheme-handler/https;
$ xdg-settings set default-web-browser openbydomain.desktop