file.write(text.replace('\e', '<Esc>'))
file.close()
- elif fname in('mailcap', 'mc.ext', 'menu') and os.path.exists(fname):
+ elif fname in ('mailcap', 'mc.ext', 'menu') and os.path.exists(fname):
file = open(fname, 'r')
text = file.read()
file.close()
file = open(fname, 'w')
text = text.replace('mplay', 'mplayer')
text = text.replace('mplayerer', 'mplayer')
+ if fname == 'mailcap':
+ text = text.replace(
+ '-a -n "`whereis smplayer`" -a -n "`whereis smplayer`"',
+ '-a -n "`whereis smplayer`"')
+ text = text.replace(
+ '-a -n "`whereis mplayer`" -a -n "`whereis mplayer`"',
+ '-a -n "`whereis mplayer`"')
file.write(text)
file.close()