Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 599910 - sci-misc/boinc-7.6.33-r1: filename mismatch between desktop entry and executable file
Summary: sci-misc/boinc-7.6.33-r1: filename mismatch between desktop entry and executa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Eden
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-15 20:08 UTC by Francesco Turco
Modified: 2017-06-02 11:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Turco 2016-11-15 20:08:04 UTC
BOINC icon has been fixed by Sven Eden with bug 593362, but there's a small glitch remaining.

Currently the sci-misc/boinc-7.6.33-r1 package installs the following files:
- /usr/share/applications/boincmgr-boinc.desktop
- /usr/bin/boincmgr

As you can see the desktop entry filename and the executable filename are different. This causes GNOME to still use an ugly icon in the launcher. You also can't add the BOINC icon to the favorites.

The only way to fix this is renaming boincmgr-boinc.desktop to boincmgr.desktop.

I don't know how to do that using the make_desktop_entry function, so I tried manually creating a files/boincmgr.desktop file and install it with the following command:

domenu "${FILESDIR}"/boincmgr.desktop

My boincmgr.desktop file contains the following lines:

[Desktop Entry]
Type=Application
Name=BOINC
Path=/var/lib/boinc
Exec=boincmgr
Icon=boinc
Terminal=false
Categories=Math;Science;

Please also see http://unix.stackexchange.com/questions/58824/how-do-i-add-eclipse-to-my-gnome-shell-favorites/59654#59654
Comment 1 Sven Eden 2016-11-24 09:56:07 UTC
I am a bit puzzled... There is no ugly icon any more, it got removed. And the gnome shell should simply use the value of the "Icon" key like everybody else does. What does it matter how the desktop file is named?

To be honest, I think that this is a huge bug in the gnome shell. But if we can get around that by simply giving the desktop file the same name as the binary, I'll see to it.

( btw: The 'official' naming is this:
"For applications, the part of the name of the desktop file (before the .desktop) should follow the "reverse DNS" convention, e.g. org.example.FooViewer.desktop."
...I guess Gnome shell goes haywire with that? ;-) )
Comment 2 Francesco Turco 2016-11-24 13:01:47 UTC
It may be indeed a problem with GNOME instead of a bug with the boinc ebuild.

I just filed the following bug report for GNOME Shell: https://bugzilla.gnome.org/show_bug.cgi?id=775001
Comment 3 Sven Eden 2016-12-08 11:52:22 UTC
(In reply to Francesco Turco from comment #2)
> It may be indeed a problem with GNOME instead of a bug with the boinc ebuild.
> 
> I just filed the following bug report for GNOME Shell:
> https://bugzilla.gnome.org/show_bug.cgi?id=775001

Still no reply there. But I have added a hotfix to my latest boinc related PR that makes the ebuilds to rename the desktop file to boincmgr.desktop.
Comment 4 Sven Eden 2017-06-02 11:54:37 UTC
The PR is through for a long while now.