<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>62531</bug_id>
          
          <creation_ts>2004-09-01 10:11 0000</creation_ts>
          <short_desc>net-analyzer/nmap 3.70 : broken .desktop entry (won&apos;t execute on click)</short_desc>
          <delta_ts>2004-09-03 06:34:11 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>leroutier@gmail.com</reporter>
          <assigned_to>spock@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>leroutier@gmail.com</who>
            <bug_when>2004-09-01 10:11:44 0000</bug_when>
            <thetext>when clicking on NmapFE in the gnome 2.6 menu,
i&apos;ve got a window saying :

&quot;Impossible de lancer l&apos;entr</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>leroutier@gmail.com</who>
            <bug_when>2004-09-01 10:11:44 0000</bug_when>
            <thetext>when clicking on NmapFE in the gnome 2.6 menu,
i&apos;ve got a window saying :

&quot;Impossible de lancer l&apos;entrée&quot;
&quot;Détails : Aucune commande (Exec) à lancer&quot;

which means :
impossible to launch this entry, details: no Exec line in .desktop file

the .desktop file is stored there :
/usr/share/gnome/apps/Utilities/nmapfe.desktop
when all other modern desktop files are in :
/usr/share/applications/
(looks like it was the location in gnome 1 times)

there is this line :
TryExec=nmapfe

but the following is missing :
Exec=nmapfe

Reproducible: Always
Steps to Reproduce:
1.
2.
3.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robertc96@hotmail.com</who>
            <bug_when>2004-09-01 10:51:21 0000</bug_when>
            <thetext>I believe that if you want nmap to build the nmapfe executable you should have +gtk in your USE variable set in /etc/make.conf. If gtk isn&apos;t in your USE variable it won&apos;t build nmapfe.

Try recompiling nmap as shown below and see if you still have the same problem, 

USE=&quot;gtk&quot; emerge nmap </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>leroutier@gmail.com</who>
            <bug_when>2004-09-01 11:20:36 0000</bug_when>
            <thetext>hum, either you misread what i wrote, or i wrote it badly

the nmapfe executable exists and is in an accessible path
-rwxr-xr-x  1 root root 82196 sep  1 19:01 /usr/bin/nmapfe

i used +gtk &amp; +gnome to compile it

nmapfe launched from terminal works
nmapfe launched from gnome 2.6 menu won&apos;t, but would display the warning i spoke about</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robertc96@hotmail.com</who>
            <bug_when>2004-09-01 11:39:45 0000</bug_when>
            <thetext>sorry I misunderstood/misread what you said.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spock@gentoo.org</who>
            <bug_when>2004-09-01 14:22:02 0000</bug_when>
            <thetext>Does changing &quot;TryExec&quot; to &quot;Exec&quot; in the desktop file work for you (even though it&apos;s in /usr/share/gnome/apps and not in /usr/share/applications)?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>leroutier@gmail.com</who>
            <bug_when>2004-09-01 14:53:23 0000</bug_when>
            <thetext>having both Exec &amp; TryExec lines works, having Exec alone works, having only TryExec line fails

as a side note, i just saw that nmapfe was present in 2 areas of the menu :
network
system tools

because it interprets this line :
Categories=Application;Network;System;Security;GTK

was it done on purpose ?

i did not have a look at .desktop files spec for a while, so i don&apos;t know if this Categories line is really correct. but that&apos;s a different issue


the actual location of the file (/usr/share/gnome/apps) is not a problem. gnome 2.6 looks at both /usr/share/gnome/apps (old gnome 1 times) and in /usr/share/applications/ (i don&apos;t know if never gnome would do it that way)

for compatibility, as it is a gtk 1 app, it could be good to let it where it is. (for people that still run gnome 1 if they exist). for the future, moving it to the good location should be better (as well as someone porting this app to gtk 2.x)

other apps i have installed that put their desktop file in the old dir are :
/usr/share/gnome/apps/Utilities/nmapfe.desktop
/usr/share/gnome/apps/Applications/gnotime.desktop
/usr/share/gnome/apps/Multimedia/mplayer.desktop
/usr/share/gnome/apps/Internet/pan.desktop
/usr/share/gnome/apps/Internet/gftp.desktop

pan, gftp &amp; gnotime are gtk 2
nmapfe &amp; mplayer still use gtk 1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>leroutier@gmail.com</who>
            <bug_when>2004-09-02 05:03:14 0000</bug_when>
            <thetext>from the latest .desktop file specification :
http://freedesktop.org/Standards/desktop-entry-spec/0.9.4/ar01s04.html

TryExec	 Filename of a binary on disk used to determine if the program is actually installed. If not, entry may not show in menus, etc. 	string	NO	NO	1

Exec	Program to execute, possibly with arguments. 	string	NO	YES	1

so, Exec is mandatory, TryExec is not. they don&apos;t have the same purpose at all

===========

for the Categories value, we shoud look at the latest menu spec :
http://www.freedesktop.org/standards/menu-spec/0.8/

registered categories are there :
http://www.freedesktop.org/standards/menu-spec/0.8/apa.html

actual value is :
Categories=Application;Network;System;Security;GTK

it should be :
Categories=GTK;Application;Network
or
Categories=GTK;Application;System;Security
or
Categories=GTK;Application;System;Monitor

=========

for the location of the .desktop file itself, the menu spec only talks about /usr/share/applications :
http://freedesktop.org/Standards/menu-spec/0.8/ar01s02.html
and does not speak about legacy old directory structure. (where it is actually)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>leroutier@gmail.com</who>
            <bug_when>2004-09-02 08:36:35 0000</bug_when>
            <thetext>as a side note, to be compliant, the Categories line *MUST* end with a &apos;;&apos;

or desktop-file-validate (from desktop-file-utils) would complain :
/usr/bin/desktop-file-validate /usr/share/gnome/apps/Utilities/nmapfe.desktop
/usr/share/gnome/apps/Utilities/nmapfe.desktop: error: value of key &quot;Categories&quot; is a list of strings and must end with a semicolon
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spock@gentoo.org</who>
            <bug_when>2004-09-03 06:34:11 0000</bug_when>
            <thetext>I&apos;ve left the file where it is (it should be up to the upstream maintainers to move it to /usr/share/applications/) and I&apos;ve added fixes for the bugs in the .desktop. Thanks for all the hints :)</thetext>
          </long_desc>
      
    </bug>

</bugzilla>