blob: 6e071c668a2731f4efa3427a6807f3d9d2c83229 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
|
echo ">>> the <MergeFile> tag ..."
# Tests the type attribute in <MergeFile>
# Generate ${DIRTY_HACK}applications.menu
mkdir -p ${XDG_CONFIG_HOME}/menus
./expand > ${XDG_CONFIG_HOME}/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/>
<MergeFile type="parent">${XDG_CONFIG_DIR}/menus/test.menu</MergeFile>
<Menu>
<Name>Applications</Name>
<Include>
<Category>TextEditor</Category>
</Include>
</Menu>
</Menu>
EOF
mkdir -p ${XDG_CONFIG_DIR}/menus
./expand > ${XDG_CONFIG_DIR}/menus/test.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>
<Menu>
<Name>Games</Name>
<Include>
<Category>Game</Category>
</Include>
</Menu>
</Menu>
EOF
./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>
<Menu>
<Name>Development</Name>
<Include>
<Category>Development</Category>
</Include>
</Menu>
</Menu>
EOF
# Install .desktop files
installData ${XDG_DATA_DIR}/applications kwrite.desktop KEdit.desktop quanta.desktop kate.desktop kbabel.desktop freecell.desktop glines.desktop
|