blob: 5d673d8b95b9c104cb23611fa1bcb1d3ada2a8d5 (
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
|
echo ">>> a complicated <Move> operation"
# 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>
<!-- Search the default locations -->
<DefaultAppDirs/>
<Move>
<Old>Games1</Old>
<New>Games</New>
</Move>
<Menu>
<Name>Games1</Name>
<Menu>
<Name>BoardGame</Name>
<Include>
<Category>BoardGame</Category>
</Include>
</Menu>
</Menu>
<Menu>
<Name>Games</Name>
<Include>
<Category>Game</Category>
</Include>
<OnlyUnallocated/>
</Menu>
</Menu>
EOF
# Install .desktop files
installData ${XDG_DATA_DIR}/applications gataxx.desktop mahjongg.desktop freecell.desktop glines.desktop
|