From: Sven Eden Date: Thu, 8 Dec 2016 09:24:53 +0000 (+0100) Subject: sci-misc/boinc: Rename desktop file to boincmgr.desktop X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=caf505ba0e3ee48cf2117042844c715873417863;p=gentoo.git sci-misc/boinc: Rename desktop file to boincmgr.desktop 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 --- diff --git a/sci-misc/boinc/boinc-7.2.44-r1.ebuild b/sci-misc/boinc/boinc-7.2.44-r2.ebuild similarity index 96% rename from sci-misc/boinc/boinc-7.2.44-r1.ebuild rename to sci-misc/boinc/boinc-7.2.44-r2.ebuild index bc0952dde73f..130e512e420d 100644 --- a/sci-misc/boinc/boinc-7.2.44-r1.ebuild +++ b/sci-misc/boinc/boinc-7.2.44-r2.ebuild @@ -118,6 +118,10 @@ src_install() { 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 diff --git a/sci-misc/boinc/boinc-7.4.52-r1.ebuild b/sci-misc/boinc/boinc-7.4.52-r2.ebuild similarity index 96% rename from sci-misc/boinc/boinc-7.4.52-r1.ebuild rename to sci-misc/boinc/boinc-7.4.52-r2.ebuild index 0a508d3c2dea..cf02d0eb2a03 100644 --- a/sci-misc/boinc/boinc-7.4.52-r1.ebuild +++ b/sci-misc/boinc/boinc-7.4.52-r2.ebuild @@ -123,6 +123,10 @@ src_install() { 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 diff --git a/sci-misc/boinc/boinc-7.6.33-r1.ebuild b/sci-misc/boinc/boinc-7.6.33-r2.ebuild similarity index 96% rename from sci-misc/boinc/boinc-7.6.33-r1.ebuild rename to sci-misc/boinc/boinc-7.6.33-r2.ebuild index 0a508d3c2dea..cf02d0eb2a03 100644 --- a/sci-misc/boinc/boinc-7.6.33-r1.ebuild +++ b/sci-misc/boinc/boinc-7.6.33-r2.ebuild @@ -123,6 +123,10 @@ src_install() { 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