usercore: remove duplicate code in ItemHandle

createDesktopShortcut and createMenuEntry are doing the same, but are
installing the created file with other commands. Move the code into
a private method
usercore: make createDesktopfile a private ItemHandle method