diff options
author | infirit <[email protected]> | 2015-07-23 15:54:19 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2015-07-23 15:54:19 +0200 |
commit | f345f330ca30e99e7aaf8461d3710cc5eafd290a (patch) | |
tree | 06995db34884a386beb8ddc494d20c4d9a5d5a91 /Mozo/MenuEditor.py | |
parent | 88361f74932dcb205678cc444df89d71e3d2017d (diff) | |
download | mozo-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.py | 2 |
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) |