Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to provide command-line arguments to the version of Firefox being used by FirefoxPWA? #39

Closed
redcathode opened this issue Jul 29, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@redcathode
Copy link

No description provided.

@redcathode redcathode added the enhancement New feature or request label Jul 29, 2021
@filips123
Copy link
Owner

Currently not (without editing the source code and specifying arguments there). However, I could add a way to provide arguments, maybe using some environment variable and/or additional arguments to the site launch command.

@filips123
Copy link
Owner

filips123 commented Aug 8, 2021

You will be able to provide Firefox arguments in 1.0.0 which will be released soon. There will be a few ways to do this:

  • To specify arguments when launching a specific PWA from the command line: firefoxpwa site launch ID --normal-arguments -- --firefox-arguments
  • To specify arguments when launching a specific PWA from start/app menu shortcut: Edit the shortcut (details depend on your OS) to provide arguments in the same way as above.
  • For all PWAs: Edit FirefoxPWA config file (%APPDATA%\FirefoxPWA\config.json (Windows)/$XDG_DATA_HOME/firefoxpwa/config.json (Linux)/$HOME/Library/Application Support/firefoxpwa/config.json(macOS)) and include arguments as JSON list of arguments. For example:
{
  "sites": {...},
  "profiles": {...},
  "arguments": ["--jsconsole", "--allow-downgrade"]
}

Arguments specified when launching from command line will overwrite config arguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants