Hack 10. Start Up from the Command Line![]() ![]() mouse.How is Firefox started? This hack describes all the command-line options. To see command-line options, most technical people instinctively open a command-line window, such as an xterm (Linux) or an MS-DOS or cmd window (Windows). Then they type program /? or program --help, depending on the operating system. The latter option works everywhere except in Windows, because Firefox doesn't provide console-based help there. So Windows is a special case: help information isn't automatically spat out there. To see command-line options on Windows, you have to go further with a DOS or cmd box. On Windows, start up a command line (Start these steps: C:The help options will appear in the newly created file help.txt. This advice goes for all options that provide command-line output, such as -version. You don't need to redirect anything on other platforms.On Windows, you can use / (forward slash) or // (double forward slash) as the command-line switch prefix. On all platforms, Firefox-specific options can be preceded with - (minus) or -- (minus, minus). These two command lines are the same on Windows, but only the first one will work on Linux: firefox -console --jsconsole http://www.example.comOn Unix/Linux, some X11 options are supported. X11 X resources aren't supported, because the Unix/Linux port uses the Gtk configuration system. Table 1-4 describes the user-oriented options.
1.12.1. See AlsoFor the more detailed programmatic command-line options, search for the DumpHelp() function at http://lxr.mozilla.org. For Unix/Linux specifically, consider also this URL: http://www.mozilla.org/unix/remotel. |