Index: server/Slim/Utils/OS/SqueezeOS.pm =================================================================== --- server/Slim/Utils/OS/SqueezeOS.pm (revision 30728) +++ server/Slim/Utils/OS/SqueezeOS.pm (working copy) @@ -4,6 +4,7 @@ use base qw(Slim::Utils::OS::Linux); use constant SQUEEZEPLAY_PREFS => '/etc/squeezeplay/userpath/settings/'; +use constant SQUEEZEBOX_PREFS => '/etc/squeezecenter/'; use constant SP_PREFS_JSON => '/etc/squeezecenter/prefs.json'; use constant SP_SCAN_JSON => '/etc/squeezecenter/scan.json'; @@ -153,6 +154,15 @@ }) or die "Unable to add Inotify watcher: $!"; + $i->watch(SQUEEZEBOX_PREFS, Linux::Inotify2::IN_MOVE() | Linux::Inotify2::IN_MODIFY(), sub { + my $ev = shift; + my $file = $ev->fullname || ''; + + if ($file && $file =~ /prefs\.json/) { + _checkMediaAtStartup($prefs); + } + }); + $w = AnyEvent->io( fh => $i->fileno, poll => 'r',