How to completely replace librewolf with firefox?

I'm new to Arch based linux and I wanted to replace LibreWolf with Firefox. I removed LibreWolf and all it's dependencies with software manager tool and installed Firefox and made it default. Now while running npm start which is for react applicaton (react-scripts start) it throws error like this :

events.js:292
      throw er; // Unhandled 'error' event
      ^

Error: spawn librewolf ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
    at onErrorNT (internal/child_process.js:465:16)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)
Emitted 'error' event on ChildProcess instance at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
    at onErrorNT (internal/child_process.js:465:16)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn librewolf',
  path: 'librewolf',
  spawnargs: [ 'http://localhost:3000' ]
}

I belive this has something to do with LibreWolf.
how do I make every link open in my default browser ?

Modifying start script works though, but didn't find it as a proper solution :
BROWSER='firefox' react-scripts start

Depending on your desktop you can set your default browser via a gui.

1 Like

Firefox is already set as default browser still i'm getting this error.

Edit

~/.profile

5 Likes

Thanks, worked :+1:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.