Don't block when executing external commands

This commit is contained in:
Andrzej Rybczak
2021-01-03 23:55:06 +01:00
parent dd0eac69f8
commit b902a2a6bf
2 changed files with 8 additions and 3 deletions

View File

@@ -570,7 +570,11 @@ void Status::Changes::songID(int song_id)
if (!s.empty())
{
if (!Config.execute_on_song_change.empty())
runExternalCommand(Config.execute_on_song_change, false);
{
// We need to block to allow sending output to the terminal so a script
// can e.g. set the album art.
runExternalCommand(Config.execute_on_song_change, true);
}
if (Config.fetch_lyrics_in_background)
myLyrics->fetchInBackground(s, false);