Bug 62531 - net-analyzer/nmap 3.70 : broken .desktop entry (won't execute on click)
|
Bug#:
62531
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: spock@gentoo.org
|
Reported By: leroutier@gmail.com
|
|
Component: Ebuilds
|
|
|
URL:
|
|
Summary: net-analyzer/nmap 3.70 : broken .desktop entry (won't execute on click)
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2004-09-01 10:11 0000
|
when clicking on NmapFE in the gnome 2.6 menu,
i've got a window saying :
"Impossible de lancer l'entr
when clicking on NmapFE in the gnome 2.6 menu,
i've got a window saying :
"Impossible de lancer l'entrée"
"Détails : Aucune commande (Exec) à lancer"
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.
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't in your USE
variable it won't build nmapfe.
Try recompiling nmap as shown below and see if you still have the same problem,
USE="gtk" emerge nmap
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 & +gnome to compile it
nmapfe launched from terminal works
nmapfe launched from gnome 2.6 menu won't, but would display the warning i spoke about
sorry I misunderstood/misread what you said.
Does changing "TryExec" to "Exec" in the desktop file work for you (even though
it's in /usr/share/gnome/apps and not in /usr/share/applications)?
having both Exec & 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't know if
this Categories line is really correct. but that'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'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 & gnotime are gtk 2
nmapfe & mplayer still use gtk 1
as a side note, to be compliant, the Categories line *MUST* end with a ';'
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 "Categories" is a list of strings and must end with a semicolon
I've left the file where it is (it should be up to the upstream maintainers to
move it to /usr/share/applications/) and I've added fixes for the bugs in the
.desktop. Thanks for all the hints :)