Den här webbplatsen har begränsad funktionalitet medan vi utför underhåll för att förbättra din upplevelse. Om en artikel inte löser ditt problem och du vill ställa en fråga har vi vår gemenskap som väntar på att hjälpa dig på @FirefoxSupport på Twitter, /r/firefox på Reddit.

Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Läs mer

Where is firefox located in linux?

  • 2 svar
  • 0 har detta problem
  • 8 visningar
  • Senaste svar av 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'.

Alla svar (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.