From 78e2100ed43c424dec83ad200e892cb796bd1d0c Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Thu, 30 Jun 2016 15:27:31 -0500 Subject: [PATCH] start mopidy if it exists --- .xsession | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.2