Skip to content

Commit

Permalink
fix fetch_desktop for crackle click
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuseteam committed Apr 24, 2024
1 parent 0c0850c commit b3e4055
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/clickfunc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function build_click () {
function prep_build () {
[ -d "${INSTALL_DIR}" ] && rm -r ${INSTALL_DIR}
mkdir -p ${CLICK_LD_LIBRARY_PATH} ${CLICK_PATH} ${INSTALL_DIR}
fetch_desktop ${BUILD_DIR}/usr/share/applications/${PKG}.desktop ${INSTALL_DIR}/${PKG}.desktop;
fetch_desktop ${PKG} ${INSTALL_DIR};
mod_desktop ${INSTALL_DIR}/${PKG}.desktop;
cp ${ROOT}/pkg.d/* ${ROOT}/apparmor.json ${ROOT}/manifest.json ${BUILD_DIR}/ || exit 1
sed -i "s/@pkg@/${PKG}/" ${BUILD_DIR}/manifest.json
Expand Down
7 changes: 4 additions & 3 deletions lib/pkgfunc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function pkg_install () {
source "${PKG_PREFIX}/lib/crackle/${pkgname}";
install_${pkgname};
fi
fetch_desktop ${pkgname}
fetch_desktop ${pkgname} ${PKG_PREFIX}/share/applications
link_icons;
link_bash-completion;
}
Expand Down Expand Up @@ -103,10 +103,11 @@ function pkgsetup(){
}

function fetch_desktop() {
PKG_DESKTOP=$2
while read desktop
do
desktopname=$(basename $desktop)
${SCRP_DIR}/desktop_trunc $desktop > ${PKG_PREFIX}/share/applications/crackle.${desktopname}
echo "X-Ubuntu-Touch=true" >> ${PKG_PREFIX}/share/applications/crackle.${desktopname}
${SCRP_DIR}/desktop_trunc $desktop > ${PKG_DESKTOP}/crackle.${desktopname}
echo "X-Ubuntu-Touch=true" >> ${PKG_DESKTOP}/crackle.${desktopname}
done < <(find $PKG_PATH/$1 -name *.desktop)
}

0 comments on commit b3e4055

Please sign in to comment.