<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace"><br></div></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 30, 2022 at 4:11 PM Dave Woodfall <<a href="mailto:dave@slackbuilds.org" target="_blank">dave@slackbuilds.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 30/04/22 15:23,<br>
Konrad J Hambrick <<a href="mailto:kjhambrick@gmail.com" target="_blank">kjhambrick@gmail.com</a>> put forth the proposition:<br>
> All --<br>
> Been playing with the OTB.SlackBuild and OTB Version 8.0.0<br>
> I am getting clean builds and the program works as expected.<br>
> `sbolint` returns no errors or warnings, but when I run<br>
> sbopkglint /tmp/OTB-8.0.0-x86_64-1_SBo.tgz I get a hint:<br>
> Running test: 35-desktop...usr/share/applications/monteverdi.desktop: hint:<br>
> value "Education;Science;ImageProcessing;Geography;Qt;" for key<br>
> "Categories" in group "Desktop Entry" contains more than one main category;<br>
> application might appear more than once in the application menu<br>
> OK<br>
> Otherwise, all tests are OK<br>
> Note that sbopkglint returns the same hint on the  OTB Version 7.3.0<br>
> Package file.<br>
> There is a doinst.sh script that I took from the Version 7.3 SlackBuild (<br>
> below by sig )<br>
> What is the proper way to set up a Desktop App in an SBo ?<br>
> Thanks.<br>
<br>
You need to decide which menu category the application should be in,<br>
then edit the .desktop to match.<br>
<br>
> value "Education;Science;ImageProcessing;Geography;Qt;"<br>
<br>
>From the description, I'd say ImageProcessing.<br>
<br>
OTB.desktop file is installed by the application so the usual way is<br>
to sed the file somewhere after the make install.<br>
<br>
--<br>
Dave<br>
<span class="gmail_default" style="font-family:monospace,monospace"></span></blockquote><div> </div><div><span style="font-family:monospace,monospace">Thanks Dave !</span></div><div><br></div><div><div class="gmail_default" style="font-family:monospace,monospace">I've added an if-block to the OTB.SlackBuild:</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace"># ---------------- cut  here -------------------</div><font face="monospace">if [ "$MONTEVERDI" = "ON" ] ; then<br>   sed -i -e '/s/^Categories=.*$/Categories=ImageProcessing;/' \<br>   $PKG<span class="gmail_default" style="font-family:monospace,monospace">/</span>usr/share/applications/monteverdi.desktop<br>fi<br></font><div class="gmail_default" style="font-family:monospace,monospace"># ---------------- cut there -------------------</div><font face="monospace"><br class="gmail-Apple-interchange-newline"></font><div class="gmail_default" style="font-family:monospace,monospace">Rerunning `MONTEVERDI=ON ./OTB.SlackBuild` 2>&1 |tee OTB.SlackBuild-8.0.0.log </div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">Will know in 30 min or so :)</div></div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">Thanks again !</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">-- kjh</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace"></div></div></div>