diff --git a/lib/clickfunc b/lib/clickfunc index 3046fc4..99035b9 100644 --- a/lib/clickfunc +++ b/lib/clickfunc @@ -47,7 +47,8 @@ function prep_build () { function fetch_desktop() { ${SCRP_DIR}/desktop_trunc ${BUILD_DIR}/usr/share/applications/${PKG}.desktop > ${INSTALL_DIR}/${PKG}.desktop sed -i "/Icon=/d" ${INSTALL_DIR}/${PKG}.desktop - sed -i "s/${PKG}/${PKG}.sh/g" ${INSTALL_DIR}/${PKG}.desktop + sed -i "/Exec=/d" ${INSTALL_DIR}/${PKG}.desktop + sed -i "/^Terminal=/i Exec=${PKG}.sh" ${INSTALL_DIR}/${PKG}.desktop echo "X-Ubuntu-Touch=true" >> ${INSTALL_DIR}/${PKG}.desktop # if mirx flag echo "X-Ubuntu-XMir-Enable=true" >> ${INSTALL_DIR}/${PKG}.desktop