From f345f330ca30e99e7aaf8461d3710cc5eafd290a Mon Sep 17 00:00:00 2001 From: infirit Date: Thu, 23 Jul 2015 15:54:19 +0200 Subject: Don't crash when a desktop has a / in the name --- Mozo/MenuEditor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mozo/MenuEditor.py b/Mozo/MenuEditor.py index 2370657..73d6549 100644 --- a/Mozo/MenuEditor.py +++ b/Mozo/MenuEditor.py @@ -550,7 +550,7 @@ class MenuEditor: elif item == None and name == None: raise Exception('New menu items need a name') else: - file_id = util.getUniqueFileId(name, '.desktop') + file_id = util.getUniqueFileId(item.get_name().replace(os.sep, '-'), '.desktop') keyfile = util.DesktopParser() if icon: keyfile.set('Icon', icon) -- cgit v1.2.1