How to load *.conf ?

For help and support with issues specific to Linux/Unix
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

How to load *.conf ?

Postby Drewpy » Mon Jan 11, 2010 2:03 am

I'm wondering how I can load additional .conf files via command line ?

I've tried putting them in a 'renderers' folder, putting them in the root of the PS3 Media Server folder, but they still don't get loaded at startup.
Drewpy
 
Posts: 3
Joined: Thu Jan 07, 2010 8:30 am

Re: How to load *.conf ?

Postby chocolateboy » Mon Jan 11, 2010 3:01 am

You can't pass in a path to a configuration file. PMS only takes 4 command line options:

  • console
  • nativelook
  • scrollbars
  • noconsole

It looks for PMS.conf in the current directory and, if it doesn't exist, creates it there (if you save any settings).

You could place PMS.conf files in separate directories and then launch each profile via a script e.g.

Code: Select all
#!/bin/sh

PMS_HOME=/path/to/PMS

if [ -z "$1" ]; then
   PMS_DIR=$PMS_HOME
else
   PMS_DIR=`dirname $1`
fi

cd $PMS_DIR
$PMS_HOME/PMS.sh


Better still, raise an issue. The lack of command-line options inhibits packaging on Linux, where the Linux Standard Base requires binaries, configuration files, logfiles, &c. to be in standard places rather than all in one directory. If it wasn't for that, it would be quite easy to package.

If you're talking about adding a renderer .conf, they're not hardwired, so you should be able to add a new one to the renderers subdirectory.
chocolateboy
Project Member
 
Posts: 2579
Joined: Wed Sep 16, 2009 10:05 am


Return to Linux/Unix Support

Who is online

Users browsing this forum: No registered users and 7 guests