Giter VIP home page Giter VIP logo

ltguillaume / librewolf-portable Goto Github PK

View Code? Open in Web Editor NEW
52.0 4.0 2.0 172 KB

The portable launcher of LibreWolf for Windows. For the automatic/portable updater, see https://github.com/ltguillaume/librewolf-winupdater

Home Page: https://codeberg.org/ltguillaume/librewolf-portable

License: GNU General Public License v3.0

AutoHotkey 100.00%
librewolf firefox browser portable arkenfox autohotkey-script portable-executable portable-apps

librewolf-portable's People

Contributors

ltguillaume avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

librewolf-portable's Issues

Recommend adding launcher settings file

Currently portable launcher has directory settings hard coded into launcher which makes portable mode be less flexible for the user.

ProgramPath := A_ScriptDir "\LibreWolf"
ExeFile := ProgramPath "\librewolf.exe"
ProfilePath := A_ScriptDir "\Profiles\Default"

Recommend adding settings ini file next to launcher executable which would allow for changes to be made such that program path, executable file, and profile path can be changed. If possible this could allow for passing of launch parameters to be used as well.

This idea was taken from the approach PortableApps has taken for their portable Firefox launcher. The main reason i like this is because i can easily create multiple profiles each with their own settings and extensions and i can just modify the launcher settings file to launch that profile. as needed.

Example:

LibreWolfDirectory=LibreWolf
ProfileDirectory=Profile\Default
LaunchParameters=-no-remote

Chrlauncher also has a similar approach for portable chrome with its respective settings file.

I'm not sure if this is possible but maybe a launch flag could be added to the LibreWolf launcher that allows for it to read a specific settings file within the directly, that way if people want to make custom shortcuts that launch specific profiles then it would be possible like so:

"LibreWolf-Portable.exe" -LibreWolf-Portable.ini (Default)
"LibreWolf-Portable.exe" -LibreWolf-Portable-Tor.ini (settings file modified to specifically launch a tor profile)

The librewolf folder in AppData remains on the system

I use the Release v111.0.1-1 from https://librewolf.net.

The "librewolf" folder in "AppData\Roaming" doesn't get deleted after I close the browser and even if I delete it manually it gets regenerated after opening the browser again. However, deleting it manually also breaks the profile selection in about:profiles (probably due to profiles.ini being reset).

I quickly looked over the LibreWolf-Portable.ahk in this repo and noticed that Line 254 says "; Remove AppData and Temp folders if empty" and the code below that seems to do just that according to autohotkey docs. This appears to be the root of the problem (it only deleting empty folders, not folders with files).

I assume that it wouldn't be too troublesome (unless you implement file shredding) to just move important files from AppData such as profiles.ini into the main librewolf folder on browser shut down and back into AppData before browser launch.
This would also help with portability, especially if it's combined with a method that would change the paths in profiles.ini and installs.ini to the drive the browser was launched from. The same could be done with paths in extensions.json of each profile as well.

Default profile launching after checking for updates with LibreWolf-WinUpdater

Appears default profile is launched even though a custom profile was specified at launch specifically when LibreWolf-WinUpdater is run prior to launching LibreWolf-Portable. In subsequent runs when the updater is not run to check for updates, the custom profile launches like normal.

Appears LibreWolf-WinUpdater does not receive "-P" parameter from launcher and pass on after check for update. I was able to reproduce this effect consistently by deleting LibreWolf-WinUpdater.ini and launching a custom profile, only to have default open after update check.

LibreWolf-Portable.exe updated by the LibreWolf Team

Hi, since I noticed that the "LibreWolf-Portable.exe" executable present in the official downloads by LibreWolf differs in version, I wanted to ask if this project is still under development and whether the changes made by the LibreWolf team they are really useful. Thank you.

Can't set Registry Key NativeMessagingHosts

For the extension ff2mpv, I need to set HKEY_CURRENT_USER\Software\LibreWolf\NativeMessagingHosts. Due to how this launcher is set up, it doesn't seem I can do this. If I set this key while LibreWolf is running, it's ignored. If I close it and set the key, then relaunch librewolf, the key is just moved into LibreWolf.pbak, it isn't present in LibreWolf.
Please allow setting/persisting this registry key somehow. It seems to be the only way to adjust Native messaging hosts on Windows.

EDIT: Disregard, the path seems to be hardcoded to HCU\Software\Mozilla even for LibreWolf.

Librewolf Portable still shows after delete the file.

Hello,

I delete the Librewolf portable files, Also remove all files from User/Appdata/Roaming,I delected the entries from the Registry as well But, still it shows me this when i pick up Pdf or any kind of file extention. May i know how to remove these files?

Os: Windows 11 64bit
Librewolf version : 112.0.1-2
vcx

Thanks.

Question: How to pin to taskbar?

Hi! This is an excellent utility (as well as your Updater, and also I used to be a big user of your Redshift Tray which is also awesome).

This is a question/feature request -- is it possible to pin the Portable launcher to the taskbar somehow? It seems that if you attempt to do this, clicking the pinned entry will instantiate a new Librewolf instance. Trying to pin the instance however creates a shortcut straight to the librewolf.exe, which, will not load the Default profile in the Portable install. Wondering if you know of any workarounds for this.

A recommend Solution to make Librewolf Portable the Standardapp

Hey,

im using Librewolf Portable as my standard Browser.


Use SetDefault.zip instead of the code below, or check #3 (comment)


To make Windows to use and set it as Standard, following Text:

set "CHRLAUNCHER_NAME=LibreWolf"
set "CHRLAUNCHER_NAME_SHORT=LibreWolf"
set "CHRLAUNCHER_DESCRIPTION=LibreWolf Portable"
set "CHRLAUNCHER_PATH=%~dp0LibreWolf-Portable.exe"
set "CHRLAUNCHER_ICON=\"%CHRLAUNCHER_PATH%\",0"
set "CHRLAUNCHER_ARGS=\"%CHRLAUNCHER_PATH%\" \"%%1\""

		reg add "HKLM\Software\Classes\%CHRLAUNCHER_NAME_SHORT%HTML" /v "" /t REG_SZ /d "%CHRLAUNCHER_NAME% Document" /f
		reg add "HKLM\Software\Classes\%CHRLAUNCHER_NAME_SHORT%HTML\DefaultIcon" /v "" /t REG_SZ /d "%CHRLAUNCHER_ICON%" /f
		reg add "HKLM\Software\Classes\%CHRLAUNCHER_NAME_SHORT%HTML\shell\open\command" /v "" /t REG_SZ /d "%CHRLAUNCHER_ARGS%" /f

		reg add "HKLM\Software\Classes\%CHRLAUNCHER_NAME_SHORT%URL" /v "" /t REG_SZ /d "%CHRLAUNCHER_NAME% Protocol" /f
		reg add "HKLM\Software\Classes\%CHRLAUNCHER_NAME_SHORT%URL" /v "EditFlags" /t REG_DWORD /d "2" /f
		reg add "HKLM\Software\Classes\%CHRLAUNCHER_NAME_SHORT%URL" /v "FriendlyTypeName" /t REG_SZ /d "%CHRLAUNCHER_NAME% Protocol" /f
		reg add "HKLM\Software\Classes\%CHRLAUNCHER_NAME_SHORT%URL" /v "URL Protocol" /t REG_SZ /d "" /f
		reg add "HKLM\Software\Classes\%CHRLAUNCHER_NAME_SHORT%URL\DefaultIcon" /v "" /t REG_SZ /d "%CHRLAUNCHER_ICON%" /f
		reg add "HKLM\Software\Classes\%CHRLAUNCHER_NAME_SHORT%URL\shell\open\command" /v "" /t REG_SZ /d "%CHRLAUNCHER_ARGS%" /f

		reg add "HKLM\Software\RegisteredApplications" /v "%CHRLAUNCHER_NAME_SHORT%" /t REG_SZ /d "Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities" /f

		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%" /v "" /t REG_SZ /d "%CHRLAUNCHER_NAME%" /f

		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\DefaultIcon" /v "" /t REG_SZ /d "%CHRLAUNCHER_ICON%" /f

		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\shell\open\command" /v "" /t REG_SZ /d "\"%CHRLAUNCHER_PATH%\"" /f

		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\InstallInfo" /v "IconsVisible" /t REG_DWORD /d "1" /f

		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities" /v "ApplicationIcon" /t REG_SZ /d "%CHRLAUNCHER_ICON%" /f
		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities" /v "ApplicationName" /t REG_SZ /d "%CHRLAUNCHER_NAME%" /f
		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities" /v "ApplicationDescription" /t REG_SZ /d "%CHRLAUNCHER_DESCRIPTION%" /f

		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities\FileAssociations" /v ".htm" /t REG_SZ /d "%CHRLAUNCHER_NAME_SHORT%HTML" /f
		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities\FileAssociations" /v ".html" /t REG_SZ /d "%CHRLAUNCHER_NAME_SHORT%HTML" /f
		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities\FileAssociations" /v ".pdf" /t REG_SZ /d "%CHRLAUNCHER_NAME_SHORT%HTML" /f
		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities\FileAssociations" /v ".shtml" /t REG_SZ /d "%CHRLAUNCHER_NAME_SHORT%HTML" /f
		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities\FileAssociations" /v ".svg" /t REG_SZ /d "%CHRLAUNCHER_NAME_SHORT%HTML" /f
		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities\FileAssociations" /v ".webp" /t REG_SZ /d "%CHRLAUNCHER_NAME_SHORT%HTML" /f
		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities\FileAssociations" /v ".xht" /t REG_SZ /d "%CHRLAUNCHER_NAME_SHORT%HTML" /f
		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities\FileAssociations" /v ".xhtml" /t REG_SZ /d "%CHRLAUNCHER_NAME_SHORT%HTML" /f

		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities\StartMenu" /v "StartMenuInternet" /t REG_SZ /d "%CHRLAUNCHER_NAME_SHORT%" /f

		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities\URLAssociations" /v "ftp" /t REG_SZ /d "%CHRLAUNCHER_NAME_SHORT%URL" /f
		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities\URLAssociations" /v "http" /t REG_SZ /d "%CHRLAUNCHER_NAME_SHORT%URL" /f
		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities\URLAssociations" /v "https" /t REG_SZ /d "%CHRLAUNCHER_NAME_SHORT%URL" /f
		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities\URLAssociations" /v "mailto" /t REG_SZ /d "%CHRLAUNCHER_NAME_SHORT%URL" /f
		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities\URLAssociations" /v "webcal" /t REG_SZ /d "%CHRLAUNCHER_NAME_SHORT%URL" /f
		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities\URLAssociations" /v "urn" /t REG_SZ /d "%CHRLAUNCHER_NAME_SHORT%URL" /f
		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities\URLAssociations" /v "tel" /t REG_SZ /d "%CHRLAUNCHER_NAME_SHORT%URL" /f
		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities\URLAssociations" /v "smsto" /t REG_SZ /d "%CHRLAUNCHER_NAME_SHORT%URL" /f
		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities\URLAssociations" /v "sms" /t REG_SZ /d "%CHRLAUNCHER_NAME_SHORT%URL" /f
		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities\URLAssociations" /v "nntp" /t REG_SZ /d "%CHRLAUNCHER_NAME_SHORT%URL" /f
		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities\URLAssociations" /v "news" /t REG_SZ /d "%CHRLAUNCHER_NAME_SHORT%URL" /f
		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities\URLAssociations" /v "mms" /t REG_SZ /d "%CHRLAUNCHER_NAME_SHORT%URL" /f
		reg add "HKLM\Software\Clients\StartMenuInternet\%CHRLAUNCHER_NAME_SHORT%\Capabilities\URLAssociations" /v "irc" /t REG_SZ /d "%CHRLAUNCHER_NAME_SHORT%URL" /f

		%windir%\system32\control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgram\pageAdvancedSettings?pszAppName=%CHRLAUNCHER_NAME_SHORT%

saved as librewolf.bat for example in the same path where librewolf-portable.exe is.

Running this as Admin, makes it possible to set Librewolf Portable as standard app (Windows 10 and latest 11 tested).

Got the Idea from: https://github.com/henrypp/chrlauncher/blob/master/bin/SetDefaultBrowser.bat

Pin from taskbar

Is changing profile settings for the pinned App a feature or a bug?

explorer.webm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.