Here's my boggle. I use
gmplayer to play all my videos. 99.9% of the time everything works fine but in that 1-in-1000 case, a video might be corrupted.
gmplayer plays the video but it cries like an angry, hungry baby, popping up windows left, right and centre. In really bad videos this actually slows down the whole system as it spawns hundreds of error windows (compiz applies effects, etc). It also steals focus and occasionally cancels Christmas.
In the command-line
mplayer these messages are just throw out to the command line. Using
mplayer-proper might be an option if I can't use
gmplayer but it's not quite as good for my needs.
I have found a workaround. If you add
-msglevel all=0 to the
gmplayer call, errors are suppressed. Useless from a debug perspective but I'm not attempting to debug videos here, just watch them.
What I want to do is "alias" or "proxy" the
gmplayer command so when you run
gmplayer from the command line or by association, it actually runs
gmplayer -msglevel all=0. I gather that just adding a bash alias won't work for associated (as in double clicking on a video in gnome) plays.
What are my options for hard-proxying the command. This only needs to work for one user but I'm open to system-wide changes too.