Gentoo-Bug: 599910
This is a workaround to the following issue:
The desktop entry filename and the executable filename are different.
Binary: boincmgr
Desktop file: boincmgr-boinc.desktop
This causes GNOME to use an ugly icon in the launcher. It is also not
possible to add the BOINC icon to the favorites.
Renaming the desktop file to boincmgr.desktop fixes both issues,
although this is only a hotfix. The GNOME shell should be perfectly
capable of using any well formed desktop file regardless of its name.
Package-Manager: portage-2.3.3
Closes: https://github.com/gentoo/gentoo/pull/3056
newicon -s $s "${WORKDIR}"/boinc_${s}.png boinc.png
done
make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" "Path=/var/lib/${PN}"
+
+ # Rename the desktop file to boincmgr.desktop to (hot)fix bug 599910
+ mv "${ED%/}"/usr/share/applications/boincmgr{-${PN},}.desktop || \
+ die "Failed to rename desktop file"
fi
# cleanup cruft
newicon -s $s "${WORKDIR}"/boinc_${s}.png boinc.png
done
make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" "Path=/var/lib/${PN}"
+
+ # Rename the desktop file to boincmgr.desktop to (hot)fix bug 599910
+ mv "${ED%/}"/usr/share/applications/boincmgr{-${PN},}.desktop || \
+ die "Failed to rename desktop file"
fi
# cleanup cruft
newicon -s $s "${WORKDIR}"/boinc_${s}.png boinc.png
done
make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" "Path=/var/lib/${PN}"
+
+ # Rename the desktop file to boincmgr.desktop to (hot)fix bug 599910
+ mv "${ED%/}"/usr/share/applications/boincmgr{-${PN},}.desktop || \
+ die "Failed to rename desktop file"
fi
# cleanup cruft