new dev
new dev

Reputation: 23

how to execute flutter app in Chromium browser on linux?

how to execute flutter app in Chromium in Flat-pack Linux? i tried #CHROME_EXECUTABLE=/snap/bin/chromium; export CHROME_EXECUTABLE but it didn't work.

Upvotes: 2

Views: 3444

Answers (3)

Angelos
Angelos

Reputation: 25

edit file ~/.bashrc

nano ~/.bashrc

at the end add this line at the end

CHROME_EXECUTABLE="/bin/chromium-browser"; export CHROME_EXECUTABLE

restart vscode and you are ready

Upvotes: 0

Ferer Atlus
Ferer Atlus

Reputation: 288

CHROME_EXECUTABLE="/usr/bin/chromium-browser"; export CHROME_EXECUTABLE

Upvotes: 1

Akrãm Kün
Akrãm Kün

Reputation: 148

you are using snaps now , to use Flat-pack Chromium edit the .bashrc file by adding :

CHROME_EXECUTABLE="/var/lib/flatpak/app/org.chromium.Chromium/current/active/export/bin/org.chromium.Chromium"; export CHROME_EXECUTABLE

Upvotes: 5

Related Questions