=== modified file 'data/templates/ubuntu-application/internal/quicklyutils.py' --- data/templates/ubuntu-application/internal/quicklyutils.py 2012-03-06 16:21:10 +0000 +++ data/templates/ubuntu-application/internal/quicklyutils.py 2012-03-08 16:53:42 +0000 @@ -228,9 +228,13 @@ # gedit. This makes it difficult to tell when user is done editing (how # to detect that vs nano opening and closing without the user saving it?). editor = get_quickly_editors() + if editor == 'gedit': + cmd = [editor, '--standalone', depfile_name] + else: + cmd = [editor, depfile_name] subenv = dict(os.environ) subenv['TMPDIR'] = tempfile.mkdtemp() - subprocess.call([editor, depfile_name], stdout=subprocess.PIPE, env=subenv) + subprocess.call(cmd, stdout=subprocess.PIPE, env=subenv) os.rmdir(subenv['TMPDIR']) # Grab file contents