Add --browser cli argument for changing the default browser

Open
#712 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
cli

Research direction

Start by locating the ui5 serve --open CLI handling and how it invokes the open package. Add support for selecting a browser such as Chrome, Firefox, or Edge, and verify that the chosen browser is used when opening the server root.

Written by the indexing model from the issue text.

Description

module/ui5-cli

Is your feature request related to a problem? Please describe.

Using ui5 serve --open will open the server root directory in the default browser. But if you want to use a browser different than the default system browser, there is no way to specify it.

Describe the solution you'd like

The open package used by the ui5-tooling supports this feature. A simple solution could be adding an additional cli argument, e.g. --browser when one can specify the browser to be used, e.g. chrome|firefox|edge, the value can be then used when executing the open request.

Describe alternatives you've considered

Copying link and manually opening it in the desired browser

Additional context

Asked also by the community: https://answers.sap.com/questions/13751060/change-default-browser-used-by-vscodefiori-tools.html

Dominant language
JavaScript
Stars
511
Forks
83
Avg merge
1d 5h
Merged PRs (30d)
55

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from UI5/cli

All issues in UI5/cli

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.