text = text.replace('mplayerer', 'mplayer')
if fname == 'mailcap':
text = text.replace(
- '-a -n "`which smplayer`" -a -n "`which smplayer`"',
- '-a -n "`which smplayer`"')
+ '-a -n "`which smplayer 2>/dev/null`" -a -n "`which smplayer 2>/dev/null`"',
+ '-a -n "`which smplayer 2>/dev/null`"')
text = text.replace(
- '-a -n "`which mplayer`" -a -n "`which mplayer`"',
- '-a -n "`which mplayer`"')
+ '-a -n "`which mplayer 2>/dev/null`" -a -n "`which mplayer 2>/dev/null`"',
+ '-a -n "`which mplayer 2>/dev/null`"')
file.write(text)
file.close()