GNOME Bugzilla – Bug 748677
tracker-preferences still calls tracker-control
Last modified: 2015-07-05 18:32:58 UTC
Created attachment 302624 [details] screenshot of bug tracker-preferences calls obsolete processes such as tracker-control. For example, when the 'rebuild indexes' button is clicked nothing happens and the window does not close as the text says. See screenshot attached. running from the terminal we see that tracker-control is still being called. The 'tracker 1.4.0-2' arch linux package installs these files under /usr/bin, many they are not executable: -rwxr-xr-x 1 root root 113K Apr 8 16:41 tracker -rwxr-xr-x 1 root root 283 Apr 8 16:41 tracker-control -rw-r--r-- 1 root root 283 Apr 8 16:41 tracker-import -rw-r--r-- 1 root root 283 Apr 8 16:41 tracker-info -rwxr-xr-x 1 root root 194K Apr 8 16:41 tracker-needle -rwxr-xr-x 1 root root 88K Apr 8 16:41 tracker-preferences -rw-r--r-- 1 root root 283 Apr 8 16:41 tracker-search -rw-r--r-- 1 root root 283 Apr 8 16:41 tracker-sparql -rw-r--r-- 1 root root 283 Apr 8 16:41 tracker-stats -rw-r--r-- 1 root root 283 Apr 8 16:41 tracker-tag setting the executable bit and running tracker-control on the console I get the following message: WARNING: The 'tracker-control' command is no longer available. WARNING: Use 'tracker <command> [<args>]' instead...\n Could not get status, manager could not be created, The connection is closed
Thanks for noticing, the way tracker-preferences handles reindexing/resetting is somewhat hackish, I'm just pushing the minor fix here and using the "tracker" tool. As for the tracker-* wrappers, the executable bit is a mishap, although compatibility wasn't full (it would eg. fail on the commands we were issuing in tracker-preferences) and they're scheduled for removal anyway.
The following fix has been pushed: f2183ef tracker-preferences: Use the new command line tool
Created attachment 306865 [details] [review] tracker-preferences: Use the new command line tool We resort to the tracker CLI for restart/reindex, the calls have changed to use Posix.system() as there's some operations that are now mutually exclusive in the CLI tool (eg. reset and start daemons) and still need to be performed in a single step here.