Set file/protocol associations to LibreWolf Portable #1

Open
opened 2025-07-25 15:57:03 +00:00 by ltguillaume · 2 comments
ltguillaume commented 2025-07-25 15:57:03 +00:00 (Migrated from codeberg.org)

If you want to be able to open http(s) or mailto links, .htm(l) files etc. with LibreWolf Portable from other programs/your file explorer, please follow these steps:

  1. Extract the attached LibreWolf-Associations.zip to the portable LibreWolf folder (i.e. put it next to LibreWolf-Portable.exe).
  2. Run LibreWolf-Associations.cmd, and confirm to elevate the script.
If you want to be able to open `http(s)` or `mailto` links, `.htm(l)` files etc. with LibreWolf Portable from other programs/your file explorer, please follow these steps: 1. Extract the attached `LibreWolf-Associations.zip` to the portable LibreWolf folder (i.e. put it next to `LibreWolf-Portable.exe`). 2. Run `LibreWolf-Associations.cmd`, and confirm to elevate the script.
mycus commented 2026-04-04 18:28:34 +00:00 (Migrated from codeberg.org)

Thank you for this!

Also, I'm not sure if this could happen on any other install or it is happening because I'm using scoop to install LibreWolf Portable and the way they symlink persistent stuff interfered with it, but I had to change line 9 like this:

- set "LW_ARGS=\"%LW_PATH%\" -profile=\"%LW_PATH%\Profiles\Default\" \"%%1\""
+ set "LW_ARGS=\"%LW_PATH%\" -profile=\"%~dp0Profiles\Default\" \"%%1\""

Else I'd just get a popup from librewolf yapping about the profile missing when I clicked an URL outside the browser. Before I changed this line, the ...\LibreWolfURL\shell\open\command (Default) string -profile= argument ended like "...\librewolf.exe\Profiles\Default"

Thank you for this! Also, I'm not sure if this could happen on any other install or it is happening because I'm using [scoop](https://github.com/ScoopInstaller/Scoop) to install LibreWolf Portable and the way they symlink persistent stuff interfered with it, but I had to change line 9 like this: ```diff - set "LW_ARGS=\"%LW_PATH%\" -profile=\"%LW_PATH%\Profiles\Default\" \"%%1\"" + set "LW_ARGS=\"%LW_PATH%\" -profile=\"%~dp0Profiles\Default\" \"%%1\"" ``` Else I'd just get a popup from librewolf yapping about the profile missing when I clicked an URL outside the browser. Before I changed this line, the `...\LibreWolfURL\shell\open\command` (Default) string `-profile=` argument ended like `"...\librewolf.exe\Profiles\Default"`
ltguillaume commented 2026-04-04 18:57:36 +00:00 (Migrated from codeberg.org)

No, you're absolutely right, this was a bug!

Thanks for reporting this! I have updated the .zip file in the opening post to reflect your proposed change.

No, you're absolutely right, this was a bug! Thanks for reporting this! I have updated the .zip file in the opening post to reflect your proposed change.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
librewolf/portable#1
No description provided.