Caută ajutor

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

Acest fir de discuție a fost arhivat. Adresează o întrebare nouă dacă ai nevoie de ajutor.

Where is firefox located in linux?

  • 2 răspunsuri
  • 0 au această problemă
  • 8 vizualizări
  • Ultimul răspuns de 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'.

Toate răspunsurile (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.