K-Meleon

KMeleonWiki > Documentation > CommandLineOptions

K-Meleon's Command Line Options


K-Meleon supports a number of command line options. To start the K-Meleon executable with additional parameters, navigate to the K-Meleon installation directory, right-click k-meleon.exe and send a shortcut to your desktop. Then right-click the created shortcut and choose Properties. Go to the Shortcut tab and append your parameters to the string in the Target input box. See the examples below.

Parameter Effect
"URL" Starts K-Meleon with the specified URL (overriding homepage settings).
-new Starts a new browser instance. Available since K-Meleon 1.1.
-P mostrecent Starts K-Meleon with the most recently used profile.
-P "profile name" Starts K-Meleon with the specified profile.
-profilesDir $appdata Starts K-Meleon with the profile location set to the %AppData% directory (overriding profile.ini).
-profilesDir "path" Starts K-Meleon with the profile location set to the specified directory (overriding profile.ini).
-webapp Starts K-Meleon in kiosk mode. Available since K-Meleon 1.5.
-norestrict K-Meleon 1.5.1 try to run itself with lower privilege by default. This option remove the security restriction added in 1.5.1. Available since K-Meleon 1.5.2.

These parameters can be combined. Note that opening new instances may fail while the K-Meleon Loader is running.


Examples


Open the K-Meleon homepage

"C:\Program Files\K-Meleon\k-meleon.exe" http://kmeleon.sourceforge.net


Open K-Meleon with the most recently used profile

"C:\Program Files\K-Meleon\k-meleon.exe" -P mostrecent


Open a new instance using profile MyProfile

"C:\Program Files\K-Meleon\k-meleon.exe" -new -P MyProfile


Open a new instance using a specified directory

"C:\Program Files\K-Meleon\k-meleon.exe" -new  -profilesDir "C:\Users\Desktop\Documents\Profiles\"

Using specific directories is slightly more complicated than it first appears. The above example will work only if the directory contains a profiles.ini file. So to open the profile located in "C:\Users\Desktop\Documents\Profiles\SpecificProfile\" the command line instruction should point one directory above the profile and that directory should contain a profile.ini that could be as simple as:

[Profile0]
Name=Specific Profile
Path=SpecificProfile
IsRelative=1
Default=1

Note:

  • Each instance can use only one profile at a time. When you want to use several profiles at the same time, you have to open a new instance for each profile.
  • Each profile can be used by only one instance at a time. You cannot use the same profile with several instances.
  • Parameters are case-sensitive, e.g., "-P" must be capitalized.
K-Meleon

(c) 2000-2010 kmeleonbrowser.org. All rights reserved.
design by splif.