jml / undistract-me

Notifies you when long-running terminal commands complete
Other
540 stars 48 forks source link

Run paplay on background to avoid delay #69

Open ldoktor opened 4 years ago

ldoktor commented 4 years ago

When UDM_PLAY_SOUND is enabled the paplay command waits until the sound is played hanging the terminal. Let's run the paplay in the background to return immediately.

Signed-off-by: Lukáš Doktor ldoktor@redhat.com

kira-bruneau commented 3 years ago

It should also be wrapped in parentheses to suppress the output given for background processes.

See https://stackoverflow.com/q/7686989.