|
Lines 4838-4843
Link Here
|
| 4838 |
|
4823 |
|
| 4839 |
</sect2> |
4824 |
</sect2> |
| 4840 |
|
4825 |
|
|
|
4826 |
<sect2 id="desktop-entries"> |
| 4827 |
<title>Desktop entries</title> |
| 4828 |
|
| 4829 |
<para>Desktop Entries (<ulink |
| 4830 |
url="http://standards.freedesktop.org/desktop-entry-spec/latest/">Freedesktop |
| 4831 |
standard</ulink>) 可以經由設定 <makevar>DESKTOP_ENTRIES</makevar> |
| 4832 |
變數而輕易地建立在你的 port 之中。這些項目會在相應的桌面環境如 GNOME 或 |
| 4833 |
KDE 的應用程式選單中出現。檔案 <filename>.desktop</filename> |
| 4834 |
將會被建立、安裝以及自動地加入 <filename>pkg-plist</filename> |
| 4835 |
中。語法為:</para> |
| 4836 |
|
| 4837 |
<programlisting>DESKTOP_ENTRIES= "NAME" "COMMENT" "ICON" "COMMAND" "CATEGORY" StartupNotify</programlisting> |
| 4838 |
|
| 4839 |
<para>項目分類可參考 <ulink |
| 4840 |
url="http://standards.freedesktop.org/menu-spec/latest/apa.html"> |
| 4841 |
Freedesktop website</ulink>。 變數 <makevar>StartupNotify</makevar> |
| 4842 |
決定應用程式在支援 startup noficication 的環境下是否清除狀態。</para> |
| 4843 |
|
| 4844 |
<para>範例:</para> |
| 4845 |
|
| 4846 |
<programlisting>DESKTOP_ENTRIES= "ToME" "Roguelike game based on JRR Tolkien's work" \ |
| 4847 |
"${DATADIR}/xtra/graf/tome-128.png" \ |
| 4848 |
"tome -v -g" "Application;Game;RolePlaying" \ |
| 4849 |
false</programlisting> |
| 4850 |
|
| 4851 |
</sect2> |
| 4852 |
|
| 4841 |
</sect1> |
4853 |
</sect1> |
| 4842 |
|
4854 |
|
| 4843 |
<sect1 id="using-gnome"> |
4855 |
<sect1 id="using-gnome"> |