Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide instructions for making this default browser #3

Open
cjohnston1158 opened this issue May 13, 2020 · 3 comments
Open

Provide instructions for making this default browser #3

cjohnston1158 opened this issue May 13, 2020 · 3 comments
Assignees

Comments

@cjohnston1158
Copy link

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

@int-ua int-ua self-assigned this May 13, 2020
@int-ua
Copy link
Owner

int-ua commented May 13, 2020

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

@int-ua
Copy link
Owner

int-ua commented May 16, 2020

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

https://wiki.debian.org/DefaultWebBrowser

https://askubuntu.com/a/282187

@cjohnston1158
Copy link
Author

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 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants