Question about Menu Moves
zero at perplexity.org
Sun Jan 28 20:21:02 PST 2007
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"
<!-- Search the default locations -->
And being told that the Menu name should be Games.
--- /tmp/menutestdir/run-result.filtered 2007-01-28
+++ /tmp/menutestdir/required-result.sorted 2007-01-28
@@ -1,2 +1,2 @@
-Apps/ gataxx.desktop /tmp/menutestdir/xdg_data_dir/applications/
-Apps/ mahjongg.desktop /tmp/menutestdir/xdg_data_dir/
+Games/ gataxx.desktop /tmp/menutestdir/xdg_data_dir/applications/
+Games/ mahjongg.desktop /tmp/menutestdir/xdg_data_dir/
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.
More information about the xdg