I would expect this to be valid: make_desktop_entry /usr/bin/xmms ... But I get: /usr/sbin/ebuild.sh: line 735: /var/tmp/portage/xmms-1.2.10-r1/temp//usr/bin/xmms.desktop: No such file or directory install: cannot stat `/var/tmp/portage/xmms-1.2.10-r1/temp//usr/bin/xmms.desktop': No such file or directory install: cannot stat `/var/tmp/portage/xmms-1.2.10-r1/temp//usr/bin/xmms.desktop': No such file or directory Changing the $desktop definition to: local desktop="${T}/`basename ${exec}`.desktop" and adding basename wherever else is appropriate should fix it.
make_desktop_entry is just a band-aid until the domenu stuff is done i wrote it and dont really like 'fixing' anything about it ;)
Also, the $subdir setting seems to be undocumented in man and the comments. local subdir="${6}"
alright then ;)
I found a _very_ minor mistake in this function so I did not file an extra bug for this. The link [1] in the comment-header of the function make_desktop_entry ist out of date, it now should be something like [2]. As said before very minor, but useful if you want so use the funktion and/or look something up. Would be nice to be fixed, but is not a must-do. [1] http://www.freedesktop.org/standards/menu/draft/menu-spec/menu-spec.html [2] http://www.freedesktop.org/standards/menu-spec/
fixed link
I just saw that link is also wrong in man 5 eutils.eclass. Did you fix that too for the next portage update?
god you guys are demanding ;) fixed manpage too
The link is again out of date. This one works: http://www.freedesktop.org/wiki/Standards_2fmenu_2dspec