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