Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58264 - emerged Kile (1.6.3) in gnome desktop, got no menu
Summary: emerged Kile (1.6.3) in gnome desktop, got no menu
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-25 04:03 UTC by ferreira.hugo
Modified: 2004-12-02 03:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ferreira.hugo 2004-07-25 04:03:10 UTC
emerged kile and can run it (with many warnings) but I have no menu to launch it.

Reproducible: Always
Steps to Reproduce:
1.emerge kile
2.kile
3.
Actual Results:  
Emerged Kile and executed it in command line.
Went to the Gnome menu: applications->office but did not find it there.
Found it no where else.

Expected Results:  
Shoud have placed a menu option in applications->office->Kile just as is done in
the case of Lyx (for example).
Comment 1 Gregorio Guidi (RETIRED) gentoo-dev 2004-07-25 09:07:29 UTC
Does it help if you manually move kile.desktop from
/usr/share/applications/kde/kile.desktop
to
/usr/share/applications/kile.desktop
?
Comment 2 ferreira.hugo 2004-07-25 09:58:09 UTC
No it doesn't. I su'd and did a: 

'mv /usr/share/applications/kde/kile.desktop /usr/share/applications/kile.desktop'

Just to make sure, I even rebooted the machine 8-0.
Could not find the menu entry in any place.

Notes: did some comparison with K3B that worked. 

K3b has: [KDE Desktop Entry]
Kile has: [Desktop Entry]
(Need to add 'KDE' ?)

K3B has:

Name=K3b
Name[hi]=
Comment 3 ferreira.hugo 2004-07-25 09:58:09 UTC
No it doesn't. I su'd and did a: 

'mv /usr/share/applications/kde/kile.desktop /usr/share/applications/kile.desktop'

Just to make sure, I even rebooted the machine 8-0.
Could not find the menu entry in any place.

Notes: did some comparison with K3B that worked. 

K3b has: [KDE Desktop Entry]
Kile has: [Desktop Entry]
(Need to add 'KDE' ?)

K3B has:

Name=K3b
Name[hi]=à<95>à¥<87>3à¬à¥<80>
Name[xx]=xxK3bxx
MimeType=application/x-k3b
X-KDE-NativeMimeType=application/x-k3b
Categories=KDE;Application;AudioVideo;DiscBurning;

Kile has:

Name=Kile
Name[xx]=xxKilexx
MimeType=text/x-tex;text/x-kilepr
Categories=Qt;KDE;Office

(Need to add 'Name[hi]=' record?)
(Need to add 'X-KDE-NativeMimeType=' record?)
(Need to add ';' to the end of the categories list?)

May be other differences, but these were ther most visible.
Comment 4 ferreira.hugo 2004-07-25 10:31:57 UTC
Partial Solution:

diff between old file and new file (file remains in original path)
 diff /usr/share/applications/kde/kile.desktop ./kile.desktop.orig

25c25
< Categories=Qt;KDE;Application;Office
---
> Categories=Qt;KDE;Office

Now I can see the entry in the office sub-menu.
Now the icon is missing. 

How do I diagnose this one?
Comment 5 Gregorio Guidi (RETIRED) gentoo-dev 2004-07-25 16:14:36 UTC
It seems gnome only puts an entry in the menu if it has the "Application"
category, that traditionally each gnome app has:
http://anoncvs.gnome.gr.jp/viewcvs.cgi/gnome-vfs/modules/vfolder/applications-all-users.vfolder-info.in?rev=1.5.2.1&view=markup

Even if "Application" is not listed among the standard categories:
http://freedesktop.org/Standards/menu-spec/0.8/apa.html

As for the icon problem, probably it is because kile does not provide an
icon in the default (/usr/share/icons/hicolor) icon theme, but only in the
kde-specific /usr/share/icons/crystalsvg theme.
Comment 6 ferreira.hugo 2004-07-25 23:33:37 UTC
You are correct, I only found references to files in the 
"/usr/share/icons/crystalsvg" path. (Can't do it now, but I will 
check on k3b to confirm that it has its icons in the 
"/usr/share/icons/hicolor" path too.

Should this be reported as another seperate error?
What is the best work-around in this case? Link or just copy the
file. I don't want to mess w/ the emerge tool.
Comment 7 Stephane Loeuillet 2004-09-03 08:34:32 UTC
to know what the problems are with a .desktop file, just try :

deskop-file-validate yourfile.desktop

this utility is from the dev-util/desktop-file-utils package (v0.7 actually) from freedesktop.org 
Comment 8 ferreira.hugo 2004-09-04 11:41:10 UTC
Installed the pacjage. Ran the instruction. This is the output:

$ desktop-file-validate desktop-patches/kile.desktop.orig

Warning, file desktop-patches/kile.desktop.orig contains a "KDE Desktop Entry" section. This has been deprecated in favor of "Desktop Entry"
Error, file desktop-patches/kile.desktop.orig does not contain the "Encoding" key. This is a required field for all desktop files.
Warning in file desktop-patches/kile.desktop.orig: nonstandard key "DocPath" lacks the "X-" prefix.
Error in file desktop-patches/kile.desktop.orig, key Categories is a list of strings and must end in a semicolon.

Still criptic. Got to look into i. Hope this helps correct the problem though.

Comment 9 Stephane Loeuillet 2004-09-04 11:49:41 UTC
Warning, file desktop-patches/kile.desktop.orig contains a "KDE Desktop Entry" section. This has been deprecated in favor of "Desktop Entry"

[KDE Desktop Entry] => [Desktop Entry]

Error, file desktop-patches/kile.desktop.orig does not contain the "Encoding" key. This is a required field for all desktop files.

add "Encoding=UTF-8" on line 2

Warning in file desktop-patches/kile.desktop.orig: nonstandard key "DocPath" lacks the "X-" prefix.

DocPath=blablabla... => X-DocPath=blablabla...

Error in file desktop-patches/kile.desktop.orig, key Categories is a list of strings and must end in a semicolon.

Categories=blablabla... => Categories=blablabla...;
Comment 10 ferreira.hugo 2004-09-11 12:03:27 UTC
#8 Stephane, 

Not so criptic after all. 
I guess that just leaves the pointer to the icon.

Thanx.
Comment 11 Carsten Lohrke (RETIRED) gentoo-dev 2004-10-19 15:37:06 UTC
I did not read the comments - sorry - could someone drop a line, if it's still an issue with kile-1.7.1, please?
Comment 12 Caleb Tennis (RETIRED) gentoo-dev 2004-12-02 03:23:41 UTC
assuming it's fixed - please open if it persists per the above comment