=== modified file 'openshot/windows/Titles.py' --- openshot/windows/Titles.py 2011-02-12 19:42:23 +0000 +++ openshot/windows/Titles.py 2011-03-03 22:29:34 +0000 @@ -27,6 +27,7 @@ #################################################################################### import os, sys +import subprocess import fnmatch import gtk from xml.dom import minidom @@ -263,13 +264,13 @@ try: prog = "inkscape" #check if inkscape is installed - if os.system('which ' + prog + ' 2>/dev/null') == 0: + if subprocess.call('which ' + prog + ' 2>/dev/null', shell=True) == 0: # launch Inkscape - os.system("%s '%s'" % (prog, self.filename)) + subprocess.Popen([prog, self.filename]) else: messagebox.show(_("OpenShot Error"), _("Please install %s to use this function." % (prog.capitalize()))) - except: + except OSError: messagebox.show(_("OpenShot Error"), _("There was an error opening '%s', is it installed?" % (prog)))