summaryrefslogtreecommitdiff
path: root/Mozo/MenuEditor.py
diff options
context:
space:
mode:
authorinfirit <[email protected]>2015-07-23 15:54:19 +0200
committerinfirit <[email protected]>2015-07-23 15:54:19 +0200
commitf345f330ca30e99e7aaf8461d3710cc5eafd290a (patch)
tree06995db34884a386beb8ddc494d20c4d9a5d5a91 /Mozo/MenuEditor.py
parent88361f74932dcb205678cc444df89d71e3d2017d (diff)
downloadmozo-f345f330ca30e99e7aaf8461d3710cc5eafd290a.tar.bz2
mozo-f345f330ca30e99e7aaf8461d3710cc5eafd290a.tar.xz
Don't crash when a desktop has a / in the name
Diffstat (limited to 'Mozo/MenuEditor.py')
-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)