summaryrefslogtreecommitdiffstats
path: root/menu/tests/test-1
blob: 34bd4662a0aba162660472e3dfdf4263680c341c (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
LEGACY_DIR=${MENUTESTDIR}/legacy_applnk
export LEGACY_DIR

# Generate applications.menu
mkdir -p ${XDG_CONFIG_DIR}/menus
./expand > ${XDG_CONFIG_DIR}/menus/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 -->
	<LegacyDir>${LEGACY_DIR}</LegacyDir>
	<DefaultAppDirs/>
	<DefaultDirectoryDirs/>

	<Menu>
		<Name>Editors</Name>
		<Directory>kde-editors.directory</Directory>
		<Include>
			<Category>TextEditor</Category>
		</Include>
	</Menu>
	<Menu>
		<Name>Development</Name>
		<Directory>kde-development.directory</Directory>
		<Include>
			<Category>Development</Category>
		</Include>
	</Menu>
</Menu>
EOF


# Install .desktop files

installData ${XDG_DATA_DIR}/applications kwrite.desktop KEdit.desktop kate.desktop

installData ${LEGACY_DIR}/Development gideon.desktop kbabel.desktop quanta.desktop

installData ${LEGACY_DIR} Kfind.desktop Home.desktop Help.desktop