blob: bbe756867dd7713bbf5cae6bba52c8c932a0136a (
plain)
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
|
echo ">>> Order of <Move> operations ..."
# Tests the type attribute in <MergeFile>
# Generate ${DIRTY_HACK}applications.menu
mkdir -p ${XDG_CONFIG_DIR}/menus
./expand > ${XDG_CONFIG_DIR}/menus/${DIRTY_HACK}applications.menu <<EOF
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
"http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
<Menu>
<Name>KDE</Name>
<DefaultAppDirs/>
<Menu>
<Name>Development</Name>
<Menu>
<Name>Games</Name>
<Include>
<Category>Game</Category>
</Include>
</Menu>
<Include>
<Category>Development</Category>
</Include>
</Menu>
<Move>
<Old>Development/Games-New</Old>
<New>Games-Correct</New>
</Move>
<Move>
<Old>Development/Games</Old>
<New>Games-Wrong</New>
</Move>
<Menu>
<Name>Development</Name>
<Move>
<Old>Games</Old>
<New>Games-New</New>
</Move>
</Menu>
</Menu>
EOF
# Move operations in sub-menus should be performed first
# Install .desktop files
installData ${XDG_DATA_DIR}/applications freecell.desktop glines.desktop gideon.desktop
|