Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 365321
Collapse All | Expand All

(-)a/eutils.eclass (-14 / +11 lines)
Lines 874-893 edos2unix() { Link Here
874
	echo "$@" | xargs sed -i 's/\r$//'
874
	echo "$@" | xargs sed -i 's/\r$//'
875
}
875
}
876
876
877
# Make a desktop file !
877
# @FUNCTION: make_desktop_entry
878
# Great for making those icons in kde/gnome startmenu !
878
# @USAGE: <binary>, [name], [icon], [type], [fields]
879
# Amaze your friends !	Get the women !	 Join today !
879
# @DESCRIPTION:
880
#
880
# Makes a desktop entry. The first argument contains the path to the binary.
881
# make_desktop_entry(<command>, [name], [icon], [type], [fields])
881
# Optionally, the second contains a name for the icon - the default is ${PN}.
882
#
882
# The third can contain a path to the icon relative to /usr/share/pixmaps or 
883
# binary:	what command does the app run with ?
883
# a full path - the default is ${PN}.png. The fourth can contain an 
884
# name:		the name that will show up in the menu
884
# application category
885
# icon:		give your little like a pretty little icon ...
885
# (http://standards.freedesktop.org/menu-spec/latest/apa.html). The fifth
886
#			this can be relative (to /usr/share/pixmaps) or
886
# argument can contain extra fields to append to the desktop file, in form of a
887
#			a full path to an icon
887
# string subjected to backslash expansion (e.g \n becomes end-of-line character).
888
# type:		what kind of application is this ?	for categories:
889
#			http://standards.freedesktop.org/menu-spec/latest/apa.html
890
# fields:	extra fields to append to the desktop file; a printf string
891
make_desktop_entry() {
888
make_desktop_entry() {
892
	[[ -z $1 ]] && die "make_desktop_entry: You must specify the executable"
889
	[[ -z $1 ]] && die "make_desktop_entry: You must specify the executable"
893
890

Return to bug 365321