Skip to content

Switch to a default browser to be chromium in GH Actions CI ubuntu runners #727

@odockal

Description

@odockal

Right now the solution where the default browser is set does not work properly on our CI:

      - name: Set default browser
        run: |
          chromiumBrowser=$(which chromium-browser)
          echo "Path to chromium: ${chromiumBrowser}"
          sudo update-alternatives --install /usr/bin/x-www-browser x-www-browser $chromiumBrowser 500
          sudo update-alternatives --set x-www-browser $chromiumBrowser

In the e2e tests it seems that protocol handler still counts with firefox and open firefox browser, causing some trouble with a after hook in playwright causing headache in order to clean all up.

solution might be to use:

      - name: Set default browser
        run: |
          xdg-settings set default-web-browser chromium-browser.desktop

But we must also create a desktop file since it is missing.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions