From: Don Armstrong Date: Thu, 30 Jun 2016 20:27:31 +0000 (-0500) Subject: start mopidy if it exists X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=78e2100ed43c424dec83ad200e892cb796bd1d0c;p=x_base.git start mopidy if it exists --- diff --git a/.xsession b/.xsession index e87798d..3ce006d 100755 --- a/.xsession +++ b/.xsession @@ -54,7 +54,9 @@ if which redshift >/dev/null 2>&1; then (redshift -l 40.11059:-88.20727 >/dev/null 2>&1 &) fi; -if which mpd >/dev/null 2>&1 && [ -e ~/.mpdconf ]; then +if which mopidy >/dev/null 2>&1 && [ -e ~/.config/mopidy/mopidy.conf ]; then + (mopidy > /dev/null 2>&1 & ); +elif which mpd >/dev/null 2>&1 && [ -e ~/.mpdconf ]; then (mpd >/dev/null 2>&1 &); MPD_HOST=$(awk '/^bind_to_address/{print $2}' ~/.mpdconf|sed "s|~|$HOME|; s/^\"//; s/\"$//; "); export MPD_HOST;