Diffusion Baloo 94da1850ec6c

balooctl monitor: Wait for dbus interface

Authored by michaelh on Feb 17 2018, 5:23 PM.

Description

balooctl monitor: Wait for dbus interface

Summary:
If baloo is not running, monitor will wait for its start.
This will simplify baloo diagnostics.

Test Plan:

$ balooctl stop
$ balooctl monitor

Without patch:

Baloo is not running
Press ctrl+c to exit monitor

With patch:

Press ctrl+c to exit monitor
Waiting for Baloo to start

In different console: balooctl start
Without patch: Nothing happens
With patch:

Baloo is running
QDBusConnection: name 'org.kde.baloo' had owner '' but we thought it was ':1.238'

Change a file in indexed folder. E.g.

$ echo otto >> ~/Documents/otto.csv

Without patch: nothing happens.
With patch:

Indexing: ~/Documents/otto.csv: Ok`

In different console: balooctl stop
With and without patch:

Baloo died
$

Reviewers: dfaure, alexeymin

Reviewed By: alexeymin

Subscribers: cfeck, alexeymin, Frameworks

Tags: Frameworks, Baloo

Differential Revision: https://phabricator.kde.org/D10578

Details

Committed
michaelhFeb 17 2018, 5:40 PM
Reviewer
alexeymin
Differential Revision
D10578: balooctl monitor: Wait for dbus interface
Parents
R293:114874660e65: fileindexerconfig: Introduce canBeSearched()
Branches
Unknown
Tags
Unknown