TEST_PURPOSE=" relative path ..." test_code() { # Generate applications.menu mkdir -p "${XDG_CONFIG_DIR}/menus" ./expand > "${XDG_CONFIG_DIR}/menus/applications.menu" < KDE ${PATH_EXPANSION}applications-merged Applications TextEditor EOF mkdir "${XDG_CONFIG_DIR}/menus/applications-merged/" ./expand > "${XDG_CONFIG_DIR}/menus/applications-merged/test.menu" < KDE Development Development EOF # intentional crap entry to verify it does _not_ get picked up ./expand > "${XDG_CONFIG_DIR}/menus/applications-merged/dar.notmenu" < KDE testing EOF # Install .desktop files installData "${XDG_DATA_DIR}/applications" kwrite.desktop KEdit.desktop quanta.desktop kate.desktop kbabel.desktop }