--- Alacarte/MenuEditor.py	2009-03-17 15:16:56.000000000 +0100
+++ /home/andreas/sources/alacarte-0.11.10/Alacarte/MenuEditor.py	2009-03-24 09:44:15.526194000 +0100
@@ -286,13 +286,13 @@ class MenuEditor:
 		keyfile.set('Categories', ('',))
 		keyfile.set('Hidden', False)
 		file_id = util.getUniqueFileId(item.get_name(), '.desktop')
-		out_path = os.path.join(util.getUserItemPath(), file_id)
+		out_path = os.path.join(util.getUserItemPath(), file_id.replace ('/', '-'))
 		keyfile.write(open(out_path, 'w'))
-		self.__addItem(new_parent, file_id, dom)
-		self.__positionItem(new_parent, ('Item', file_id), before, after)
-		self.__addUndo([self.__getMenu(new_parent), ('Item', file_id)])
+		self.__addItem(new_parent, file_id.replace ('/', '-'), dom)
+		self.__positionItem(new_parent, ('Item', file_id.replace ('/', '-')), before, after)
+		self.__addUndo([self.__getMenu(new_parent), ('Item', file_id.replace ('/', '-'))])
 		self.save()
-		return file_id
+		return file_id.replace ('/', '-')
 
 	def moveItem(self, item, new_parent, before=None, after=None):
 		undo = []
