This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

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.