Quantcast
Channel: Squeezebox : Community : Forums - Logitech Media Server
Viewing all articles
Browse latest Browse all 5300

Use --nomysqueezebox when starting from System Preferences on Mac

$
0
0
To run LMS with the --nomysqueezebox option on a Mac when starting/stopping LMS from the System Preferences you'll need to modify a simple script.

Open the file below in your favourite text editor:

Code:

/Library/PreferencePanes/Squeezebox.prefPane/Contents/Resources/start-server.sh
Then change just add the --nomysqueezebox switch to the slimserver.pl line. In my file it now looks like this:

Code:

#!/bin/sh
SERVER_RUNNING=`ps -axww | grep "squeezecenter\.pl|slimp3\.pl\|slimp3d\|slimserver\.pl\|slimserver" | grep -v grep | cat`

PRODUCT_NAME=Squeezebox
LOG_FOLDER="$HOME/Library/Logs/$PRODUCT_NAME"

if [ z"$SERVER_RUNNING" = z ] ; then
        if [ ! -e $LOG_FOLDER ] ; then
                mkdir -p $LOG_FOLDER;
        fi

        if [ z"$USER" != zroot ] ; then
                chown -R $USER $LOG_FOLDER
        fi

        cd "`dirname $0`/../server"

        ./slimserver.pl --nomysqueezebox --daemon $1 &> /dev/null &
fi

Caveats:
1. This will only take effect when manually starting LMS from the System Preferences. I doubt it will work when automatically starting at boot.
2. I presume the changes will be lost on upgrade, so you'd need to re-apply the change after an upgrade.

If there's a better/cleaner way to enable this option then please feel free to point it out.

Viewing all articles
Browse latest Browse all 5300

Trending Articles