Here are some patches for the issue 730, this is how I think it is better to do, but I'm not God almighty...
- Code: Select all
--- PMS.sh (revision 771)
+++ PMS.sh (working copy)
@@ -20,17 +20,17 @@
fi
# Setup PMS_HOME
-if [ "x$PMS_HOME" = "x" ]; then
+if [ -z "$PMS_HOME" ]; then
PMS_HOME=$DIRNAME
fi
export PMS_HOME
# XXX: always cd to the working dir: https://code.google.com/p/ps3mediaserver/issues/detail?id=730
-cd $PMS_HOME
+#cd $PMS_HOME
# Setup the JVM
-if [ "x$JAVA" = "x" ]; then
- if [ "x$JAVA_HOME" != "x" ]; then
+if [ -z "$JAVA" ]; then
+ if [ -n "$JAVA_HOME" ]; then
JAVA="$JAVA_HOME/bin/java"
else
JAVA="java"
@@ -40,7 +40,7 @@
# Setup the classpath
# since we always cd to the working dir, these a) can be unqualified and b) *must*
# be unqualified: https://code.google.com/p/ps3mediaserver/issues/detail?id=1122
-PMS_JARS="update.jar:pms.jar"
+PMS_JARS="$PMS_HOME/update.jar:$PMS_HOME/pms.jar"
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
- Code: Select all
--- net/pms/configuration/RendererConfiguration.java (revision 771)
+++ net/pms/configuration/RendererConfiguration.java (working copy)
@@ -45,7 +45,7 @@
} catch (ConfigurationException e) {
}
- File renderersDir = new File("renderers");
+ File renderersDir = new File(System.getenv("PMS_HOME") + System.getProperty("file.separator") + "renderers");
if (renderersDir.exists() && renderersDir.isDirectory()) {
logger.info("Loading renderer configurations from " + renderersDir.getAbsolutePath());
I don't know if it works under cygwin.
