Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Traubenfuchs
on Aug 30, 2023
|
parent
|
context
|
favorite
| on:
Windows 11 system components use the default brows...
Afaik to make a program selectable as default browser, one needs to register it as a protocol handler for http and https urls in the registry.
https://stackoverflow.com/a/38205984/2306536
aziaziazi
on Aug 30, 2023
[–]
Does that mean I can use a headless browser as default ?
Traubenfuchs
on Aug 30, 2023
|
parent
[–]
You can probably put any cmd-executable command as default, including headless browsers.
numpad0
on Aug 30, 2023
|
root
|
parent
[–]
I tried exactly that. Turns out it can't be a .bat or .ps1 for understandable reasons, it has to be an executable. So, my "default browser" on this machine I'm on is now an .exe that prints $1. It works.
Consider applying for YC's W25 batch! Applications are open till Nov 12.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://stackoverflow.com/a/38205984/2306536