Where is firefox located in linux?
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'.
Todas las respuestas (2)
hello frodwii20,
this is sample code- please follow this
- This code is used to open URL in firefox
- browser
import webbrowser
- To take the URL as input from the user.
print('Enter the URL: ', end="") link = input()
- Passing firefox executable path to the
- Mozilla class.
firefox = webbrowser.Mozilla("C:\\Program Files\ \Mozilla Firefox\\firefox.exe")
- Using open() function to display the URL.
firefox.open(link)
On my Linux system Firefox is simply firefox. On some Linux systems the executable itself is firefox-bin.