Index: action.py ================================================================== --- action.py +++ action.py @@ -2,11 +2,11 @@ # api: streamtuner2 # type: functions # category: io # title: play/record actions # description: Starts audio applications, guesses MIME types for URLs -# version: 1.2.0 +# version: 1.2.1 # priority: core # # Multimedia interface for starting audio players, recording app, # or web browser (listed as "url/http" association in players). # It maps audio MIME types, and extracts/converts playlist types @@ -41,10 +41,11 @@ from datetime import datetime from xml.sax.saxutils import escape as xmlentities, unescape as xmlunescape import ahttp from config import * +import sys # Coupling to main window # main = None @@ -135,11 +136,11 @@ # Exec wrapper def run(cmd): if "cmd" in conf: cmd = conf.cmd % cmd elif conf.windows: - cmd = "start " + cmd + cmd = "start " + cmd.encode(sys.getfilesystemencoding()) else: cmd = cmd + " &" try: log.EXEC(cmd) os.system(cmd)