Problem: How can I launch PMS with a custom profile?
Solution:A collection of PMS configuration settings is called a
profile. Profiles are stored in text files with a .conf extension. The default profile is saved as
PMS.conf.
A profile can be
created by launching the PMS profile selector (see
below) and either navigating to a directory without a PMS.conf file (the profile will be saved there as PMS.conf), or navigating to any directory and manually adding the new profile filename (with a .conf extension) after the directory in the file name field. Alternatively, a new profile can be created by copying and editing an existing profile in a text editor (the options are documented
here).
New profiles configured in the GUI should be
saved via the Save button if they are to be reused, and each profile should use a different port if it needs to run at the same time as other profiles.
A profile can be
loaded interactively by launching the PMS profile selector (see
below), navigating to a directory with a saved .conf file and selecting it. For automatic loading options (e.g. via shortcuts), see below.
To distinguish between different profiles in the renderer, set the name option (this must currently be set manually in the .conf file) e.g.:
- Code: Select all
name = My Profile
If no name is specified, the hostname is used.
Each profile must have a unique
UUID:
- Code: Select all
# this is just an example; don't copy it
uuid = abcd1234-1234-1234-1234-12345678abcd
A new UUID is created and saved automatically for profiles created and saved via the GUI, but profiles that are copied and edited in a text editor will need to adjust this identifier manually. Any alphanumeric character(s) can be changed as long as each profile's UUID is unique.
Profiles can be selected in three ways:
1. GUIAs of PMS 1.30.0, it's possible to select a custom profile or create a new one by launching PMS via the "PS3 Media Server (Select Profile)" Start Menu shortcut on Windows and
Linux. A similar shortcut/launcher may be available in builds on other platforms.
2. Environment Variable (Advanced):
PMS also supports multiple profiles by means of the PMS_PROFILE
environment variable. This is mainly useful on Unix systems where environment variables can be set on a per-process basis. It can also be useful on Windows to define a custom location for the default profile.
If this variable is unset, the
default profile directory is used to locate PMS.conf (and WEB.conf, if used).
If PMS_PROFILE is an absolute or relative (to the working directory) path pointing to an existing directory, then PMS.conf is loaded from and saved to that directory. If PMS_PROFILE is set, but doesn't point to an existing directory, it is assumed to be a relative or absolute path to a profile file. Note: while the file doesn't need to exist, the directory containing it must exist if the file is to be saved.
Unix (Linux, Mac OS X &c.):
- Code: Select all
PMS_PROFILE=PMS.conf ./PMS.sh
PMS_PROFILE=relative/path/to/profile.conf ./PMS.sh
PMS_PROFILE=/absolute/path/to/myprofile.conf ./PMS.sh
Windows:
3. Property (Advanced):
The profile file/directory can also be set via the pms.profile.path property e.g.
- Code: Select all
java -Dpms.profile.path=/path/to/PMS.conf net.pms.PMS
This is resolved in the same way as the environment variable.
On Windows, this property can be set in the
PMS .bat launcher or
via a shortcut. In both cases, multiple .bat files/shortcuts can be used to launch different profiles.