I guess I didn't make myself clear: someone with a Mac (i.e. not me) should test/tweak this if Mac users want plugins to work.
It may work. It may not. But at the moment, no-one has reported even trying it.
dummy_user wrote:can anybody tell me how I can get the output of the script ran when launching the *app file to a console, log file or whatever?
#!/bin/sh#!/bin/sh -xdummy_user wrote:Was the paste command supposed to do that??
#!/bin/sh
# set environment variables here
export LANG=en_US.UTF-8
# execute the real JavaApplicationStub
here="${0%/*}"
cmd="JavaApplicationStub"
working_dir=$HOME/pms
log_dir=$HOME/pms_startup.txt
echo working_dir=$working_dir > $log_dir
classpath="$working_dir/update.jar:$(echo $working_dir/plugins/*.jar | sed 's/ /:/g')"
echo classpath=$classpath >> $log_dir
if [ x"$classpath" != x"" ]; then
echo execute=$here/$cmd -classpath $classpath "$@" >> $log_dir
exec "$here/$cmd" -classpath $classpath "$@"
else
echo execute=$here/$cmd "$@" >> $log_dir
exec $here/$cmd "$@"
fiworking_dir=/Users/pw/pms
classpath=/Users/pw/pms/update.jar:/Users/pw/pms/plugins/MovieInfo.jar:/Users/pw/pms/plugins/tmdbrater.jar
execute=/Users/pw/Documents/eclipse/pms/ps3mediaserver/osx/PS3 Media Server.app/Contents/MacOS/JavaApplicationStub -classpath /Users/pw/pms/update.jar:/Users/pw/pms/plugins/MovieInfo.jar:/Users/pw/pms/plugins/tmdbrater.jar -psn_0_18870782<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleName</key>
<string>PS3 Media Server</string>
<key>CFBundleShortVersionString</key>
<string>1.20.412</string>
<key>CFBundleGetInfoString</key>
<string>1.20.412</string>
<key>CFBundleAllowMixedLocalizations</key>
<string>false</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleExecutable</key>
<string>JavaApplicationStub.setenv</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>PS3M</string>
<key>CFBundleIconFile</key>
<string>pms.icns</string>
<key>Java</key>
<dict>
<key>MainClass</key>
<string>net.pms.PMS</string>
<key>JVMVersion</key>
<string>1.6+</string>
<key>ClassPath</key>
<array>
<string>/Users/pw/pms/plugins/MovieInfo.jar</string>
<string>/Users/pw/pms/update.jar</string>
<string>$JAVAROOT/pms.jar</string>
</array>
<key>VMOptions</key>
<string>-Xmx1024M -Xss16M -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true -jar</string>
<key>WorkingDirectory</key>
<string>$APP_PACKAGE/Contents/Resources/Java</string>
</dict>
</dict>
</plist>dummy_user wrote:The class path consists of an array (at the end) which has to be changed by the script on application start to include $JAVAROOT/pms.jar, /Users/ph_waeber/pms/update.jar as well as all discovered plugins. I've got no clue how to write this though
Return to Additions and Plugins
Users browsing this forum: No registered users and 4 guests