Hello,

I'm working on an implementation of the Menu Spec and have a question regarding the <Move> operations. Looking at the menu spec it specifies that: "Within each <Menu>, execute <Move> operations in the order that they appear." Which, makes sense to me. What doesn't is the result of running the menu test suite for the Move test:

 <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
  "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd";>

<Menu>
        <Name>KDE</Name>
        <!-- Search the default locations -->
        <DefaultAppDirs/>
        <Move>
                <Old>Foo</Old>
                <New>Bar</New>
                <Old>BoardGames</Old>
                <New>Apps</New>
                <Old>BoardGames</Old>
                <New>Games</New>
        </Move>

        <Menu>
                <Name>BoardGames</Name>
                <Include>
                        <Category>BoardGame</Category>
                </Include>
        </Menu>
</Menu>

And being told that the Menu name should be Games.

--- /tmp/menutestdir/run-result.filtered 2007-01-28 23:07:37.000000000 -0500 +++ /tmp/menutestdir/required-result.sorted 2007-01-28 23:07:37.000000000 -0500
@@ -1,2 +1,2 @@
-Apps/ gataxx.desktop /tmp/menutestdir/xdg_data_dir/applications/ gataxx.desktop -Apps/ mahjongg.desktop /tmp/menutestdir/xdg_data_dir/ applications/mahjongg.desktop +Games/ gataxx.desktop /tmp/menutestdir/xdg_data_dir/applications/ gataxx.desktop +Games/ mahjongg.desktop /tmp/menutestdir/xdg_data_dir/ applications/mahjongg.desktop

If I process the moves in order won't the BoardGames menu get moved to Apps before the move to Games happens? In which case, there is no menu to moves to Games anymore as it has already been renamed.

I guess the other possibility is, if you have two moves with the same <Old> entry does the earlier move get ignored?

Any pointers are greatly appreciated.

Thanks,
dan





_______________________________________________
xdg mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/xdg

Reply via email to