Fix the name of .desktop files for openjdk

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@20122 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Pierre Labastie 2018-05-03 17:00:18 +00:00
parent c74eb3a776
commit 89b38c1ee4
3 changed files with 18 additions and 9 deletions

View File

@ -1,12 +1,12 @@
<!-- $LastChangedBy$ $Date$ -->
<!ENTITY day "02"> <!-- Always 2 digits -->
<!ENTITY day "03"> <!-- Always 2 digits -->
<!ENTITY month "05"> <!-- Always 2 digits -->
<!ENTITY year "2018">
<!ENTITY copyrightdate "2001-&year;">
<!ENTITY copyholder "The BLFS Development Team">
<!ENTITY version "&year;-&month;-&day;">
<!ENTITY releasedate "May 2nd, &year;">
<!ENTITY releasedate "May 3rd, &year;">
<!ENTITY pubdate "&year;-&month;-&day;"> <!-- metadata req. by TLDP -->
<!ENTITY blfs-version "svn"> <!-- svn|[release #] -->
<!ENTITY lfs-version "development"> <!-- x.y|development -->

View File

@ -348,7 +348,7 @@ done
<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
cat &gt; /usr/share/applications/openjdk-9-java.desktop &lt;&lt; "EOF" &amp;&amp;
cat &gt; /usr/share/applications/openjdk-java.desktop &lt;&lt; "EOF" &amp;&amp;
<literal>[Desktop Entry]
Name=OpenJDK Java &openjdk-version; Runtime
Comment=OpenJDK Java &openjdk-version; Runtime
@ -359,8 +359,8 @@ Icon=java
MimeType=application/x-java-archive;application/java-archive;application/x-jar;
NoDisplay=true</literal>
EOF
cat &gt; /usr/share/applications/openjdk-9-policytool.desktop &lt;&lt; "EOF" &amp;&amp;
<!-- No policytool in java 10...
cat &gt; /usr/share/applications/openjdk-policytool.desktop &lt;&lt; "EOF" &amp;&amp;
<literal>[Desktop Entry]
Name=OpenJDK Java &openjdk-version; Policy Tool
Name[pt_BR]=OpenJDK Java &openjdk-version; - Ferramenta de Pol&#237;tica
@ -372,8 +372,8 @@ Type=Application
Icon=java
Categories=Settings;</literal>
EOF
cat &gt; /usr/share/applications/openjdk-9-jconsole.desktop &lt;&lt; "EOF"
-->
cat &gt; /usr/share/applications/openjdk-jconsole.desktop &lt;&lt; "EOF"
<literal>[Desktop Entry]
Name=OpenJDK Java &openjdk-version; Console
Comment=OpenJDK Java &openjdk-version; Console
@ -384,14 +384,14 @@ Type=Application
Icon=java
Categories=Application;System;</literal>
EOF</userinput></screen>
<!-- Name[pt_BR] not do=isplayed anymore
<para>
The choice of pt_BR is just an example. You can add any translation
by adding lines corresponding to your locale, e.g. for fr_FR,
<quote>Name[fr_FR]=</quote> and <quote>Comment[fr_FR]=</quote> with the
appropriate text as values.
</para>
-->
</sect2>
<sect2 role="commands">

View File

@ -41,6 +41,15 @@
</itemizedlist>
</listitem>
-->
<listitem>
<para>May 3rd, 2018</para>
<itemizedlist>
<listitem>
<para>[pierre] - Remove version from OpenJDK .desktop files.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>May 2nd, 2018</para>
<itemizedlist>