diff options
author | Waldo Bastian <waldo.bastian@intel.com> | 2003-08-13 20:32:05 +0000 |
---|---|---|
committer | Waldo Bastian <waldo.bastian@intel.com> | 2003-08-13 20:32:05 +0000 |
commit | cd3f8b4a7987d23c9af7aa6a6b3e37b9ac2b2253 (patch) | |
tree | 0d25009a5bcc85a79d7b21608ca37fcc403db742 /menu/tests/test-1 | |
parent | 7f2c3443647b8f5a7d17c5b53b157d33794e9c6c (diff) | |
download | xdg-specs-cd3f8b4a7987d23c9af7aa6a6b3e37b9ac2b2253.tar.xz |
First attempt at a testsuit
Diffstat (limited to 'menu/tests/test-1')
-rw-r--r-- | menu/tests/test-1 | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/menu/tests/test-1 b/menu/tests/test-1 new file mode 100644 index 0000000..34bd466 --- /dev/null +++ b/menu/tests/test-1 @@ -0,0 +1,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 + + |