summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Mozo/MenuEditor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mozo/MenuEditor.py b/Mozo/MenuEditor.py
index 66e4d74..af7ee4f 100644
--- a/Mozo/MenuEditor.py
+++ b/Mozo/MenuEditor.py
@@ -289,7 +289,7 @@ class MenuEditor:
#erase Categories in new file
keyfile.set('Categories', ('',))
keyfile.set('Hidden', False)
- file_id = util.getUniqueFileId(item.get_name(), '.desktop')
+ file_id = util.getUniqueFileId(item.get_name().replace(os.sep, '-'), '.desktop')
out_path = os.path.join(util.getUserItemPath(), file_id)
keyfile.write(open(out_path, 'w'))
self.__addItem(new_parent, file_id, dom)