- Document DESKTOP_ENTRIES

This commit is contained in:
Pav Lucistnik 2006-05-23 22:47:48 +00:00
parent 5a4f86acd8
commit 5e05157e70
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=27921

View file

@ -4915,6 +4915,35 @@ BUILD_DEPENDS+= Xvfb:${X_VFBSERVER_PORT} \
</sect2>
<sect2 id="desktop-entries">
<title>Desktop entries</title>
<para>Desktop Entries (<ulink
url="http://standards.freedesktop.org/desktop-entry-spec/latest/">Freedesktop
standard</ulink>) can be easily created in your port using
<makevar>DESKTOP_ENTRIES</makevar> variable. These entries do
show up in application menus of compliant desktop environments
like GNOME or KDE. The <filename>.desktop</filename> file will
be created, installed, and added to the
<filename>pkg-plist</filename> automatically. Syntax is:</para>
<programlisting>DESKTOP_ENTRIES= "NAME" "COMMENT" "ICON" "COMMAND" "CATEGORY" StartupNotify</programlisting>
<para>List of possible categories is available <ulink
url="http://standards.freedesktop.org/menu-spec/latest/apa.html">on
Freedesktop website</ulink>. The <makevar>StartupNotify</makevar>
indicates, if the application will clear the status in startup
notification aware environment.</para>
<para>Example:</para>
<programlisting>DESKTOP_ENTRIES= "ToME" "Roguelike game based on JRR Tolkien's work" \
"${DATADIR}/xtra/graf/tome-128.png" \
"tome -v -g" "Application;Game;RolePlaying" \
false</programlisting>
</sect2>
</sect1>
<sect1 id="using-gnome">