Modified from issue #2821:
Setting Brave as a default program for file types produces inconsistent results. Many users report being unable to open links from external apps.
This applies to any way in which file type associations are made:
- Via reg/command line args
Open With... --> Always open...from context menu
System Settings --> Choose a default app for each type of file
Steps to Reproduce
Use any method to associate a file type/extension (
.tiff , etc) with Brave.
Test the association by opening a file of the appropriate type.
It seems like the registry path for some users points to the wrong directory. Some users report that editing this registry key resolves their issue while others report that it does launch Brave when the links/files are opened, but Brave only launches a new window w/new tab page (instead of opening/navigating to the appropriate URL).
Steps to edit Windows registry keys (if necessary):
- On your Windows machine, with no Brave instances open, use the start menu search bar and type
regedit, hit enter
HKEY_CLASSES_ROOTfrom the side bar
- In your
Registry Editorat the top, append
\BraveHTML\shell\open\commandto the path. The full path at the top should now read
Computer\HKEY_CLASSES_ROOT\BraveHTML\shell\open\command– hit enter
- You should now see a path appear under the
Datacolumn in the editor. Copy/paste this value somewhere in the event we need to re-enter it later. This value must match the location of the Brave executable file and it’s likely pointing somewhere else which is causing the issue.
- In the registry editor, modify the path to point to
"C:\Program Files(x86)\BraveSoftware\Brave-Browser\Application\brave.exe" --"%1"
I’d like to get some additional data on the issue by testing a few different scenarios and comparing the results. If you’re encountering this issue and would like to help diagnose this:
- Ensure Brave is set as your default browser
- Set both the
.pngfile types you’ve associated the following file types to open with Brave (even if these types don’t apply to your issue in particular).
- Follow the steps in the above section to edit your registry key to reflect the appropriate path if necessary.
Once the above steps are complete, please try the following and report what you find:
Test 1 - Save a web page (use
right-click --> Save As... or
File menu) or save open a text editor and save the file as
.html to your desktop. Close Brave, then open the file.
Test 2 - Open a hyperlink from an external app (test as many as you’d like – can’t have too much data). You can use an external mail client if you have one, create a link in a Word or Excel document, click a link in the Discord app, etc. Be sure to note which apps you used.
Test 3 - Save or use a pre-existing
.png file and open the file.
Please let us know the results of your tests and which Windows OS you’re using.