1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-dev] Does Mageia fully follow XDG menu specifications?
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Does%20Mageia%20fully%20follow%20XDG%20menu%20specifications%3F&In-Reply-To=%3CBANLkTi%3D8K2188WuD0p3W4kZZa%2BSgR6wh5Q%40mail.gmail.com%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="004616.html">
<LINK REL="Next" HREF="004621.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-dev] Does Mageia fully follow XDG menu specifications?</H1>
<B>Franklin Weng</B>
<A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Does%20Mageia%20fully%20follow%20XDG%20menu%20specifications%3F&In-Reply-To=%3CBANLkTi%3D8K2188WuD0p3W4kZZa%2BSgR6wh5Q%40mail.gmail.com%3E"
TITLE="[Mageia-dev] Does Mageia fully follow XDG menu specifications?">franklin at goodhorse.idv.tw
</A><BR>
<I>Wed May 11 10:02:56 CEST 2011</I>
<P><UL>
<LI>Previous message: <A HREF="004616.html">[Mageia-dev] Does Mageia fully follow XDG menu specifications?
</A></li>
<LI>Next message: <A HREF="004621.html">[Mageia-dev] [1290] Allow listing posts and rejects
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#4619">[ date ]</a>
<a href="thread.html#4619">[ thread ]</a>
<a href="subject.html#4619">[ subject ]</a>
<a href="author.html#4619">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Thanks for your reply.
Please see below.
2011/5/11 Pascal Terjan <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">pterjan at gmail.com</A>>:
><i> On Wed, May 11, 2011 at 06:10, Franklin Weng <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">franklin at goodhorse.idv.tw</A>> wrote:
</I>>><i> Hi list,
</I>>><i>
</I>>><i> Right now I'm customizing my own menu (without menu editor).  I'm
</I>>><i> implementing our own menu structure, so I followed XDG menu specs to
</I>>><i> create our own menu.
</I>>><i>
</I>>><i> However, I found that the menu layout attributes, like "show_empty",
</I>>><i> "inline", ... etc., seemed to be ignored.
</I>>><i>
</I>>><i> AFAIK, the XDG menu spec implementation should be done by distribution
</I>>><i> vendors.  If yes, would anyone please tell me if Mageia (or even
</I>>><i> Mandriva) fully follows the XDG menu spec?  Or, what should I do to
</I>>><i> make the show_empty, inline work?
</I>><i>
</I>><i> On which environment did you test? GNOME? KDE?
</I>
KDE.
><i> The specification is followed by the desktop environment as far as I
</I>><i> know, but the distro defines some rules (using the menu spec)
</I>><i>
</I>><i> inline works and is used in /etc/xdg/menus/applications.menu:
</I>><i>
</I>><i>  <Name>Applications</Name>
</I>><i>  <Layout>
</I>><i>    <Menuname inline="false">Internet</Menuname>
</I>><i>    <Menuname inline="false">Office</Menuname>
</I>><i>    <Menuname inline="false">Graphics</Menuname>
</I>><i>    <Menuname inline="false">SoundVideo</Menuname>
</I>><i>    <Menuname inline="false">Tools</Menuname>
</I>><i>    <Menuname inline="false">Development</Menuname>
</I>><i>    <Menuname inline="false">Games</Menuname>
</I>><i>    <Menuname inline="false">Education</Menuname>
</I>><i>    <Menuname inline="false">Sciences</Menuname>
</I>><i>    <Menuname inline="false">Documentation</Menuname>
</I>><i>    <Merge type="menus"/>
</I>><i>    <Merge type="files"/>
</I>><i>    <Separator/>
</I>><i>    <Filename>rpmdrake.desktop</Filename>
</I>><i>  </Layout>
</I>><i>  <DefaultLayout inline="true" inline_limit="1">
</I>><i>    <Merge type="files"/>
</I>><i>    <Menuname>More</Menuname>
</I>><i>    <Merge type="menus"/>
</I>><i>  </DefaultLayout>
</I>
My rules are like this:
<Menu>
<Name>Applications</Name>
<Directory>ezgo.directory</Directory>
<KDELegacyDirs/>
<DefaultAppDirs/>
<DefaultDirectoryDirs/>
<DefaultLayout inline="true" inline_limit="1">
<Merge type="menus"/>
<Merge type="files"/>
<Separator/>
<Menuname>More</Menuname>
</DefaultLayout>
<Layout>
<Menuname inline="false" show_empty="true">Office</Menuname>
<Menuname inline="false" show_empty="true">Graphics</Menuname>
<Menuname inline="false" show_empty="true">SoundVideo</Menuname>
<Menuname inline="false" show_empty="true">Internet</Menuname>
<Menuname inline="false" show_empty="true">Games</Menuname>
<Menuname inline="false" show_empty="true">Education</Menuname>
<Menuname inline="false" show_empty="true">Accessibility</Menuname>
<Separator/>
<Menuname inline="false" show_empty="true">System</Menuname>
<Menuname inline="false" show_empty="true">Development</Menuname>
<Menuname inline="false" show_empty="true">Settingsmenu</Menuname>
<Separator/>
</Layout>
<Menu>
<Name>Internet</Name>
<Directory>ezgo-internet.directory</Directory>
<Layout>
<Menuname inline="true" inline_limit="0">Internet-Browser</Menuname>
<Separator/>
<Menuname inline="true" inline_limit="0">Internet-IM</Menuname>
<Separator/>
<Merge type="menus"/>
<Merge type="files"/>
</Layout>
<Menu>
<Name>Internet-Browser</Menuname>
<Include>
<And>
<Category>Network</Category>
<Category>WebBrowser</Category>
<Not><Category>X-KDE-More</Category></Not>
</And>
</Include>
</Menu>
<Menu>
<Name>Internet-IM</Menuname>
<Include>
<And>
<Category>Network</Category>
<Category>InstantMessaging</Category>
<Not><Category>X-KDE-More</Category></Not>
</And>
</Include>
</Menu>
</Menu>
[deleted]
</Menu>
The result is: the show_empty attribute didn't work. The inline
attribute inside the layout of Internet menu didn't work.
I thought that I've followed the XDG men specs. Did I write anything wrong?
Thanks for your help!
Franklin
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="004616.html">[Mageia-dev] Does Mageia fully follow XDG menu specifications?
</A></li>
<LI>Next message: <A HREF="004621.html">[Mageia-dev] [1290] Allow listing posts and rejects
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#4619">[ date ]</a>
<a href="thread.html#4619">[ thread ]</a>
<a href="subject.html#4619">[ subject ]</a>
<a href="author.html#4619">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>
|