Tracker no longer returns files with hyphens in the filename, when the search string contains a hyphen
On Ubuntu 18.04 LTS using the vanilla-gnome-desktop session (i.e. Gnome Shell), tracker does not return any files if there is a hyphen (-
) in the search string.
To recreate:
$> echo "test" > ~/foobar-foobaz
$> tracker search -f "foobar-"
Files:
$> tracker search -f "foobar"
Files:
file:///home/alex/foobar-foobaz
-
Press
<Super>
to open Gnome Shell Overview. -
Type
foobar
. Observe that thefoobar-foobaz
file appears under the Files header. -
Type
foobar-
. Observe that the overview says "No results."
This is a regression as files with hyphens in the filename were included in search results in 16.04.
See this Launchpad bug: https://bugs.launchpad.net/ubuntu/+source/tracker/+bug/1812132
$> dpkg -l | grep tracker
ii gir1.2-tracker-2.0:amd64 2.0.3-1ubuntu4 amd64 GObject introspection data for Tracker
ii kerneloops 0.12+git20140509-6ubuntu2 amd64 kernel oops tracker
ii libtracker-control-2.0-0:amd64 2.0.3-1ubuntu4 amd64 library to control/monitor tracker miners
ii libtracker-miner-2.0-0:amd64 2.0.3-1ubuntu4 amd64 tracker data miner library
ii libtracker-sparql-2.0-0:amd64 2.0.3-1ubuntu4 amd64 metadata database, indexer and search tool - library
ii libwhoopsie-preferences0 0.19 amd64 Ubuntu error tracker submission settings - shared library
ii libwhoopsie0:amd64 0.2.62 amd64 Ubuntu error tracker submission - shared library
ii libxatracker2:amd64 18.0.5-0ubuntu0~18.04.1 amd64 X acceleration library -- runtime
ii tracker 2.0.3-1ubuntu4 amd64 metadata database, indexer and search tool
ii tracker-extract 2.0.4-1 amd64 metadata database, indexer and search tool - metadata extractors
ii tracker-miner-fs 2.0.4-1 amd64 metadata database, indexer and search tool - filesystem indexer
ii whoopsie 0.2.62 amd64 Ubuntu error tracker submission