blob: 3ee07777b4b59d29a4915efc59cf1e7bf99b34f4 (
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
|
TEST_PURPOSE="<Category> tag"
test_code() {
# 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 -->
<DefaultAppDirs/>
<Menu>
<Name>Editors</Name>
<Include>
<Category>TextEditor</Category>
<!-- note it's lowercase, this is intentional to verify
it's a case sensitive implementation -->
<Category>application</Category>
</Include>
</Menu>
</Menu>
EOF
# Install .desktop files, freecell is daft but intentional to verify category support is case sensitive
installData ${XDG_DATA_DIR}/applications kwrite.desktop KEdit.desktop kate.desktop freecell.desktop
}
|