Is there a possibility to use in Mozilla's homepage settings a constant, something like this: %MOZILLAROOT% by analogy with %SYSTEMROOT%?

For example: %MOZILLAROOT%/profile/index.html

1 Answer 1


2 paths:

  • which firefox to return the Firefox installation path (/usr/bin/firefox).
  • Your profile in ~/.firefox/profile/
  • May be, you did not understand the question. I need to specify relative path in portable installation of FF. So I want to know, does FF have internal command, that gives the root folder, which could be used in relative path to homepage. Commented Apr 14, 2018 at 16:47
  • Is there in FF something like "firefox_root", that can be used as: file:///firefox_root/homepage.html ??? Commented Apr 14, 2018 at 17:09
  • 1
    First of all, you did not say you have a portable version of Firefox, and you must edit your question accordingly. Commented Apr 14, 2018 at 17:48
  • Secondly, I do not think there is such thing in Firefox, although I would try with the usual relative paths like "./foo.html" and check how it reacts, even if you can not in the settings, should try with the program variables in about:config. Commented Apr 14, 2018 at 17:50
  • I do not see no difference between portable and non-portable versions. The program should know it's root folder, and it does. In about:config there is a variable "browser.open.dir" it shows the way I need. But how could I use this variable in address in homepage's settings? Records like "file:///index.html" or "file:///browser.open.dir/index.html" open just an empty silver window. No alerts, no mistakes. Commented Apr 14, 2018 at 19:23

Not the answer you're looking for? Browse other questions tagged .