file.close()
file = open(fname, 'w')
if fname == 'mailcap':
- text = text.replace(
- '-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 2>/dev/null`" -a -n "`which mplayer 2>/dev/null`"',
'-a -n "`which mplayer 2>/dev/null`"')