summaryrefslogtreecommitdiffstats
path: root/menu/tests/tests/k/test
blob: 2a037b7e04118603490cf437c5171843353847dd (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
echo ">>> the <MergeFile> tag ..."

# 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/>
	<MergeFile>applications-merged/test.menu</MergeFile>

	<Menu>
		<Name>Applications</Name>
		<Include>
			<Category>TextEditor</Category>
		</Include>
	</Menu>
</Menu>
EOF


mkdir ${XDG_CONFIG_DIR}/menus/applications-merged/
./expand > ${XDG_CONFIG_DIR}/menus/applications-merged/test.menu <<EOF
 <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
  "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
<!-- test -->

<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