gssp-recoll package installs a desktop file that duplicates menu gnome shell entries
This is a minor annoyance, but I often open the wrong instance of recoll because there are two desktop application entry icons that appear in the gnome shell when searching for the app recoll
, one for the GUI (the 2nd icon), and one for the search provider (the first icon). I assume o in org occurs before r in recoll, hence the first icon shown is pointing to the search provider which does not launch recoll:
$ find /usr/share/applications/ -type f -iname '*recoll*.desktop'
/usr/share/applications/org.recoll.Recoll.SearchProvider.desktop
/usr/share/applications/recoll-searchgui.desktop
I've attempted to find a way to hide org.recoll.Recoll.SearchProvider.desktop
as it has no normal open action and seems to be related only to gnome search provider integration. My failed attempts include:
- Copying the desktop entry into
~/.local/share/applications
and adding eitherNoDisplay=true
orOnlyShowIn=
(intentionally empty) hoping it would hide the menu item confusion, but still let the search provider work. It hides everything, including the search provider integration. This is arguably an upstream gnome bug: Show results from search providers which haveNoDisplay=true
- Simply deleting
/usr/share/applications/org.recoll.Recoll.SearchProvider.desktop
which breaks the search provider integration because/usr/share/gnome-shell/search-providers/org.recoll.Recoll.search-provider.ini
setsDesktopId=org.recoll.Recoll.SearchProvider.desktop
?
https://developer.gnome.org/SearchProvider/ also fails to clarify the relationship between normal .desktop entry files with [Desktop Entry]
and [Shell Search Provider]
, so there seems to be no obvious way to avoid causing another recoll icon and app entry. Sadly, the gnome dev doc I found does not explain if or why a [Desktop Entry]
is also required for a search provider to work. Perhaps there is some way to integrate search providers without a desktop entry.
I took a look at /usr/share/gnome-shell/search-providers/gnome-terminal-search-provider.ini
.
Also checked:
$ dpkg-query --listfiles gnome-terminal | grep -iP '((search)|(desktop)|(dbus))'
/usr/share/applications/org.gnome.Terminal.desktop
/usr/share/dbus-1
/usr/share/dbus-1/services
/usr/share/dbus-1/services/org.gnome.Terminal.service
/usr/share/gnome-shell/search-providers
/usr/share/gnome-shell/search-providers/gnome-terminal-search-provider.ini
Seems the terminal search provider does not add a 2bd desktop entry. It only uses one entry.
This issue was tested on Ubuntu 20.04.