Description
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 ( .jpg
, .html
, .tiff
, etc) with Brave.
Test the association by opening a file of the appropriate type.
Potential workaround
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 -
Select
HKEY_CLASSES_ROOT
from the side bar -
In your
Registry Editor
at the top, append\BraveHTML\shell\open\command
to the path. The full path at the top should now readComputer\HKEY_CLASSES_ROOT\BraveHTML\shell\open\command
– hit enter -
You should now see a path appear under the
Data
column 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"
- As noted by @jdenbley below, if the above path does not work for you, try this modified path and see if you get the same results:
"C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe" "%1"
- As noted by @jdenbley below, if the above path does not work for you, try this modified path and see if you get the same results:
Further testing
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
.html
and.png
file 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.