This is two ideas for the mailcap of mpg123, - Run mpg123.bin to be sure of getting the mpg123 program in case update-alternatives has selected something else (like mpg321). - Run "-C -v" when on a tty for interactiveness. # "mpg123 -C -v" for keyboard controls and progress line on a terminal. # # "mpg123 -q" quiet when no tty. In this case read stdin since that # might let run-mailcap or similar pipe straight in, no temp file. # # ENHANCE-ME: Should have test="..." in these entries so they're only # used if audio output is possible by mpg123's configured or selected # methods. That might mean user in the "audio" group, or jack daemon # running, etc. Would playing an empty mp3 be a good enough test? # Perhaps mpg123 could help by some sort of "mpg123 --test-output". # audio/mpeg; /usr/bin/mpg123.bin -C -v '%s'; needsterminal; description="MPEG Audio"; priority=5 audio/mpeg; /usr/bin/mpg123.bin -q -; description="MPEG Audio"; priority=5