Gentoo Archives: gentoo-user

From: Rick Harris <rickharris@×××××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] What is portage trying to tell me?
Date: Sun, 22 Jul 2007 23:17:13
Message-Id: 200707230841.30081.rickharris@mightylegends.org
In Reply to: Re: [gentoo-user] What is portage trying to tell me? by Albert Hopkins
1 On Mon, 23 Jul 2007 07:43:57 am Albert Hopkins wrote:
2 > On Sun, 2007-07-22 at 13:38 -0700, Kevin O'Gorman wrote:
3 > > I seem to see this from time to time when I look at the emerge logs
4 > > that are emailed to me by portage, and I never know what to make of
5 > > it.
6 > > This one is from kde-base/kcontrol-3.5.5:
7 > >
8 > > LOG: preinst
9 > > /usr/kde/3.5/share/applications/kde/panel_appearance.desktop: required
10 > > key "Name" not found --
11 > >
12 > > required key "Type" not found
13 > > Why is this allowed to occur? What am I expected to do about it, and
14 > > how would I know that, given that I'm a user, not a developer?
15 >
16 > FDO .desktop files should have "Type" and "Name" keys, e.g:
17 >
18 > [Desktop Entry]
19 > Encoding=UTF-8
20 > Version=1.0
21 > Type=Application
22 > ^^^^
23 > Terminal=false
24 > Exec=Xephyr -screen 1024x768 -query flea -once :2
25 > Name[en_US]=flea
26 > Icon[en_US]=/usr/share/pixmaps/gnome-xterm.png
27 > Name=flea
28 > ^^^^
29 > Icon=/usr/share/pixmaps/gnome-xterm.png
30 >
31 > So looks like whatever is installing/manipulating the .desktop file is
32 > not seeing those keys. Why is it allowed to occur? I suppose it's not
33 > allowed and that's why the program is complaining. What are you
34 > expected to do? Likely you'd search/create a bug at bugs.gentoo.org.
35 > Could either be a problem with the .ebuild or ustream. I'm guessing the
36 > latter. How would you know "that"? Not sure what "that" is. Users
37 > aren't expected to know everything (neither are developers in fact).
38 > When in doubt, do as you did and ask.
39
40
41 As a quick fix, here is what a healthy panel_appearance.desktop file looks
42 like:
43
44 [Desktop Entry]
45 Encoding=UTF-8
46 Hidden=true
47 Name=panel_appearance
48 Type=Application
49
50 Run 'desktop-file-validate /usr/kde/3.5/share/applications/kde/panel_appearance.desktop',
51 after editing and saving to check that it is now valid.
52
53
54 Cheers,
55 Rick
56
57
58 PS> Have only just yesterday subscribed to this mailing list (only taken me 4
59 years), so HI! to all you Gentoo-ites :D
60 --
61 gentoo-user@g.o mailing list