diff options
Diffstat (limited to 'zarb-ml/mageia-dev/20110511/004619.html')
-rw-r--r-- | zarb-ml/mageia-dev/20110511/004619.html | 197 |
1 files changed, 197 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/20110511/004619.html b/zarb-ml/mageia-dev/20110511/004619.html new file mode 100644 index 000000000..6bd6367c0 --- /dev/null +++ b/zarb-ml/mageia-dev/20110511/004619.html @@ -0,0 +1,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> |