Menu

#2859 Add Brave browser for Override URL field

KeePass
open
nobody
None
5
2026-01-14
2024-01-23
Freitag
No
cmd://{BRAVE} "{URL}"
cmd://{BRAVE} --incognito "{URL}"

and it should work even if Brave is installed on the D (or any other) drive.

Discussion

  • Freitag

    Freitag - 2024-01-23

    Oh, this may be a bad request?
    I just discovered that another formulation of the Override URL works

    brave: --incognito "{URL}"
    
     
  • T. Bug Reporter

    T. Bug Reporter - 2024-01-26

    It would be nice if the major browsers were handled similarly, but that brings up the question: How does a browser become "major"? Who decides this question? Perhaps Brave now has enough users (and enough people mentioning it here) that it qualifies - perhaps not. (I'm glad that I don't have to make that call.)

    another formulation

    Recognition of "brave:" as having special meaning is not something that's present in a fresh install of KeePass; perhaps you (or the Brave installer) added that to your configuration. In any case, this is the main way Dominik (the KeePass author) has provided to allow users to customize the action KeePass takes when a URL is clicked. I always thought it was a little strange, but it is what it is.

    (There is a standard place in the Windows registry for browsers to announce their existence to other programs that may want to connect with them; if Brave doesn't do this, there's no way for KeePass to know what to do when a potential "{BRAVE}" placeholder is encountered.)

    A related discussion:
    Adding Brave in incognito to dropdown menus

     
  • Zarodoz

    Zarodoz - 2025-12-31

    As a Brave browser user, please add this to the URL override area. Better yet according to Paul the list is NOT dynamic. May I suggest that the computer be scanned for Browsers and the list be updated.
    Thank you

     
  • Paul

    Paul - 2025-12-31

    The list is dynamic. KeePass reads the registry to find installed browsers.
    On my machine with Brave installed I get an option to open the URL with Brave (right click on the entry).

    cheers, Paul

     
    • Freitag

      Freitag - 2025-12-31

      How often does KeePass update the dynamic list?

      Or how do I force a re-scan?

       

      Last edit: Freitag 2025-12-31
      • Paul

        Paul - 2026-01-01

        Every time it loads probably.

        cheers, Paul

         
    • Zarodoz

      Zarodoz - 2026-01-01

      Paul, You and I discussed this previously and you said the list was static.
      Specifically I am speaking of: Edit Entry->Properties->Override URL
      The dropdown list does not contain any Brave references.
      Perhaps we did not communicate well....

       

      Last edit: Zarodoz 2026-01-01
  • Paul

    Paul - 2026-01-01

    You are correct, that list is static.
    I prefer the right click option as it lists available browsers.

    cheers, Paul

     
    • Freitag

      Freitag - 2026-01-01

      OK, I found it. Right click -> URL(s) shows list.....

      I did discover a new right click option (Perform Auto-Type) that I was previously unaware of in the main list too.

      Old dog, new trick...

       
      • Paul

        Paul - 2026-01-01

        There are more Auto-Type commands on the context menu if you select Tools > Options > Interface (1), Show additional auto-type menu commands.

        cheers, Paul

         
    • Zarodoz

      Zarodoz - 2026-01-02

      I found the Right Click feature that you were speaking of. Brave IS listed. But this is a dynamic thing. I am forced to chose a Browser each time I want to use the entry.

      This is not my work flow. I use SEVEN Browsers. I spread out my work across multiple browsers for security reasons. I don't want to have to keep choosing Brave each time I want to use a specific entry. All my entries a coded to use a specific browser using the drop down menu. EXCECPT Brave.

      Please ad Brave to the Drop down menu so that I can automate the usage of Brave.

      Thank you

       

      Last edit: Zarodoz 2026-01-02
      • Freitag

        Freitag - 2026-01-02

        In the properties tab you can hard code a path to the browser (or any app). The right click on main list is only to override the default browser occasionally, not all the time. I do web development so I have several different records named things like "dev ops - Brave", "dev ops - Chrome", "dev ops - Safari" - which all point to the same URL but have hard coded paths to the other browsers.

        For instance I use this for SSH into servers

        In one record
        On General tab URL field: ssh://host7.company.com
        On Properties tab Override URL field:
        cmd://"putty.exe" -load my_dev_settings -ssh {USERNAME}@{URL:HOST} -P {T-REPLACE-RX:/{BASE:PORT}/-1/22 /} -pw "{PASSWORD}"

        This assumes that "putty.exe" is in the PATH variable (technically a bad idea, should use whole path for more security) but this is where you would put a hard coded browser

        In another record
        This one is to specifically open one browser in a mode where my cookies won't get wiped out.
        On Properties tab Override URL field:
        cmd://"D:\Program Files\LibreWolf\librewolf.exe" -private-window "{URL}"

         

        Last edit: Freitag 2026-01-02
        • Zarodoz

          Zarodoz - 2026-01-03

          Sorry but that is WAY over my head.

           
          • Freitag

            Freitag - 2026-01-03

            The easy one is the second one.

            You have a record that goes to some website.
            In the record

            • on the General tab in the URL field: https:somesiet.com
            • on the Properties tab in the Override URL field type the following
              cmd://"FULL PATH TO NON DEFAULT BROWSER" "{URL}"

            And now your record will open in the non default browser.

            Think of that as a recipe that works even if you don't get it 100%

             
  • Paul

    Paul - 2026-01-03

    You can even use a single entry to hold the Brave path to save you having to find and type the path all the time and to allow you to change it easily.

    1. Create a new entry called "BraveCMD".
    2. Enter the brave path in the username field. e.g. C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe
    3. Edit the entry where you want to use Brave and click the Tools button at the bottom.
    4. Select Insert Field Reference > In Notes Field.
    5. Select the "BraveCMD" entry and the Identify source entry by "Title" radio button and the Source field to reference "User name" button. OK.
    6. Copy the reference from the Notes field.
    7. Select the Properties tab and an existing override from the drop down.
    8. Edit the override and replace the browser placeholder, e.g. {EDGE}, with the reference you copied, e.g. {REF:U@T:BraveCMD}

    Now double clicking the URL will launch Brave and if you need to change the brave path you do it in only one entry and if/when KeePass gets a brave placeholder you can use XML Replace to change all the old overrides, or just change it on your BraveCMD entry.

    cheers. Paul

     
    👍
    1
    • Freitag

      Freitag - 2026-01-14

      What am I doing wrong?
      I tried the path both with and without quotes because of the embedded space.


       

      Last edit: Freitag 2026-01-14
  • Paul

    Paul - 2026-01-14

    You must quote the path for Waterfox because of the space.
    You should also quote the URL to allow for odd characters, although this is not the issue here.

    Does Waterfox run if you paste only the executable command into the Windows run box (Win R)?
    Now add the URL.
    Now add the private window option.

    cheers, Paul

     
  • Dominik Reichl

    Dominik Reichl - 2026-01-14

    In addition to what Paul wrote, you should prepend cmd:// (otherwise the whole line is treated as a file path and you get the error that you're seeing).

    Best regards,
    Dominik

     
    • Paul

      Paul - 2026-01-14

      Well spotted, I omitted that from the instructions.

      cheers, Paul

       
  • Freitag

    Freitag - 2026-01-14

    Yes, Waterfox runs if I paste the path in Win+R (even if I do not quote the string - I tested both ways)

    Still bugged, but I found an ugly work around.

    I had to add the quotes in the Override URL too.
    cmd://"{REF:U@T:WaterfoxCMD}" -private-window "{URL}"

    Thanks for the help though, this is a lot better than I was doing before - manually entering it.

    I guess my better name convention would be
    {REF:U@T:FavoriteBrowserCMD}
    since I tend to change from time to time.

     

    Last edit: Freitag 2026-01-14

Log in to post a comment.

MongoDB Logo MongoDB