diff options
Diffstat (limited to 'Mozo')
-rw-r--r-- | Mozo/MainWindow.py | 4 | ||||
-rw-r--r-- | Mozo/MenuEditor.py | 2 |
2 files changed, 3 insertions, 3 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'): diff --git a/Mozo/MenuEditor.py b/Mozo/MenuEditor.py index 73d6549..66e4d74 100644 --- a/Mozo/MenuEditor.py +++ b/Mozo/MenuEditor.py @@ -478,7 +478,7 @@ class MenuEditor: def __getPath(self, menu, path=None): if not path: - path = menu.tree.root.get_menu_id() + path = menu.tree.root.get_menu_id() if menu.get_parent(): path = self.__getPath(menu.get_parent(), path) path += '/' |