diff options
Diffstat (limited to 'Mozo/MainWindow.py')
-rw-r--r-- | Mozo/MainWindow.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mozo/MainWindow.py b/Mozo/MainWindow.py index df9ebfa..ca2be27 100644 --- a/Mozo/MainWindow.py +++ b/Mozo/MainWindow.py @@ -558,8 +558,8 @@ class MainWindow: if content_type == 'application/x-desktop': input_stream = myfile.read() (fd, tmppath) = tempfile.mkstemp(prefix='mozo-dnd', suffix='.desktop') - with open(fd, "w") as f: - f.write(input_stream.read()) + with open(fd, "w") as f: + f.write(input_stream.read()) parser = util.DesktopParser(tmppath) self.editor.createItem(parent, parser.get('Icon'), parser.get('Name', self.editor.locale), parser.get('Comment', self.editor.locale), parser.get('Exec'), parser.get('Terminal'), before, after) elif content_type in ('application/x-shellscript', 'application/x-executable'): |