Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Where is firefox located in linux?

  • 2 replies
  • 0 have this problem
  • 8 views
  • Last reply by Terry

more options

I need to write a program that will find firefox on user computer. I want to use whichcraft(python) For example chrome is located: 'chromium-browser', 'chromium', 'google-chrome', 'google-chrome-stable'.

I need to write a program that will find firefox on user computer. I want to use whichcraft(python) For example chrome is located: 'chromium-browser', 'chromium', 'google-chrome', 'google-chrome-stable'.

All Replies (2)

more options

hello frodwii20,

this is sample code- please follow this

  1. This code is used to open URL in firefox
  2. browser

import webbrowser

  1. To take the URL as input from the user.

print('Enter the URL: ', end="") link = input()

  1. Passing firefox executable path to the
  2. Mozilla class.

firefox = webbrowser.Mozilla("C:\\Program Files\ \Mozilla Firefox\\firefox.exe")

  1. Using open() function to display the URL.

firefox.open(link)

more options

On my Linux system Firefox is simply firefox. On some Linux systems the executable itself is firefox-bin.