=== modified file 'data/templates/ubuntu-application/edit.py' --- data/templates/ubuntu-application/edit.py 2010-10-15 20:26:19 +0000 +++ data/templates/ubuntu-application/edit.py 2010-11-18 13:12:23 +0000 @@ -56,11 +56,16 @@ filelist += 'bin/' + configurationhandler.project_config['project'] editor = quicklyutils.get_quickly_editors() -# if editor is still gedit, launch it in background -if editor == "gedit": - command = ["gedit"] - command.extend(filelist.split(" ")) - subprocess.call(command) -else: - os.system("%s %s" % (editor, filelist)) +command = [editor] +command.extend(filelist.split(" ")) + +editor_uses_terminal = configurationhandler.project_config.get('editor_uses_terminal', 'No') +editor_uses_terminal = editor_uses_terminal.lower() + +# launch it in background except for vim, emacs, nano etc +if editor_uses_terminal in ['n', 'no', 'false']: + command.extend('&') + +subprocess.call(command) +