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 765502 - [PATCH] Tracker fails to autostart when using the system bus
[PATCH] Tracker fails to autostart when using the system bus
Status: RESOLVED OBSOLETE
Product: tracker
Classification: Core
Component: General
1.8.x
Other Solaris
: Normal major
: ---
Assigned To: tracker-general
tracker-general
Depends on:
Blocks:
 
 
Reported: 2016-04-24 14:35 UTC by Andrew Stormont
Modified: 2021-05-26 22:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch fixes autostart on system bus (1.31 KB, patch)
2016-04-24 14:35 UTC, Andrew Stormont
reviewed Details | Review

Description Andrew Stormont 2016-04-24 14:35:20 UTC
Created attachment 326635 [details] [review]
Patch fixes autostart on system bus

Tracker fails to autostart when using the system bus.  This is because the dbus launch helper does not pass the TRACKER_BUS_TYPE through when launching the tracker daemons.  It does however set it's own variable (DBUS_STARTER_BUS_TYPE) with the value "system".

The attached patch updates the tracker_ipc_bus function to fall back to checking for this variable if TRACKER_BUS_TYPE is not set.  The tracker daemon(s) will now start automatically when needed like they do in the session bus.
Comment 1 Andrew Stormont 2016-04-24 14:38:21 UTC
Relevant part of the dbus code: https://cgit.freedesktop.org/dbus/dbus/tree/bus/activation-helper.c#n161
Comment 2 Debarshi Ray 2016-06-08 09:02:48 UTC
Review of attachment 326635 [details] [review]:

Note that I am not a maintainer, so I can't conclusively ack/nack your patch.

From a quick glance, your change looks reasonable to me. However, it would be better if you submitted it in the 'git format-patch' format so that it can be properly attributed and so on. https://wiki.gnome.org/Newcomers/CodeContributionWorkflow has some more details.
Comment 3 jackieb 2016-08-10 22:26:55 UTC
tracker-control-general.c
                manager = tracker_miner_manager_new_full (TRUE, &error);
                if (!manager) {
                        g_printerr (_("Could not start miners, manager could not be created, %s"),
+                                   error ? error->message : _("No error given"));
Comment 4 Sam Thursfield 2021-05-26 22:24:31 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new enhancement request ticket at
  https://gitlab.gnome.org/GNOME/tracker/-/issues/

Thank you for your understanding and your help.