Your title and question ask two different things, which is a bit confusing. I am not clear on if you want just a way to find the Firefox executable, or a way to extract the currently used (or default?) icon from Firefox.
Icon files:
If you are just looking for a URL to use within Firefox, they should be located at:
- chrome://branding/content/icon128.png
- chrome://branding/content/icon64.png
- chrome://branding/content/icon32.png
- chrome://branding/content/icon16.png
They do not appear to exist in .ico files within the Firefox distribution. In fact there are only 4 .ico files in the entire distribution. They are all within the browser/omni.ja
file at (windows assumed as primary based on your statements in prior questions):
- chrome\browser\skin\classic\browser\customizableui\customizeFavicon.ico
- chrome\browser\skin\classic\aero\browser\customizableui\customizeFavicon.ico
- chrome\browser\skin\classic\browser\preferences\in-content\favicon.ico
- chrome\browser\skin\classic\aero\browser\preferences\in-content\favicon.ico
omni.ja
files are just zip format files with the extension changed to .ja instead of .zip. You can change the file extension back to .zip and read it with any appropriate archive handler.
The chrome://
URLs are:
- chrome://skin/customizableui/customizeFavicon.ico
- chrome://skin/preferences/favicon.ico
I think you can only get access to two of them at a time through chrome://skin/
depending on if you are using aero. If you really need access to both you could use nsiZipReader to open the actual omni.ja
file.
Executable file:
You already had a batter way to get the executable file. From your comment it is:
FileUtils.getFile('XREExeF', []);