summaryrefslogtreecommitdiff
path: root/Mozo
diff options
context:
space:
mode:
Diffstat (limited to 'Mozo')
-rw-r--r--Mozo/MenuEditor.py2
1 files changed, 1 insertions, 1 deletions
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)