LEGACY_DIR=${MENUTESTDIR}/legacy_applnk export LEGACY_DIR # Generate applications.menu mkdir -p ${XDG_CONFIG_DIR}/menus ./expand > ${XDG_CONFIG_DIR}/menus/applications.menu < KDE ${LEGACY_DIR} Editors kde-editors.directory TextEditor Development kde-development.directory Development 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