After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 748677 - tracker-preferences still calls tracker-control
tracker-preferences still calls tracker-control
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: Preferences
unspecified
Other Linux
: Normal normal
: ---
Assigned To: tracker-preferences
tracker-preferences
Depends on:
Blocks:
 
 
Reported: 2015-04-30 03:18 UTC by Luis Henrique Mello
Modified: 2015-07-05 18:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot of bug (347.90 KB, image/png)
2015-04-30 03:18 UTC, Luis Henrique Mello
  Details
tracker-preferences: Use the new command line tool (3.01 KB, patch)
2015-07-05 18:32 UTC, Carlos Garnacho
none Details | Review

Description Luis Henrique Mello 2015-04-30 03:18:23 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
Comment 1 Carlos Garnacho 2015-07-05 18:24:49 UTC
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.
Comment 2 Carlos Garnacho 2015-07-05 18:32:54 UTC
The following fix has been pushed:
f2183ef tracker-preferences: Use the new command line tool
Comment 3 Carlos Garnacho 2015-07-05 18:32:58 UTC
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.