@@ -488,24 +488,20 @@ int main(int argc, char **argv)
488
488
setenv ("XDG_CACHE_HOME" , _PATH_STATEDIR , 0 );
489
489
setenv ("TRACKER_USE_LOG_FILES" , "1" , 0 );
490
490
491
- if (atalk_iniparser_getboolean (obj .iniconfig , INISEC_GLOBAL , "start dbus" , 1 )) {
492
- dbus_path = atalk_iniparser_getstring (obj .iniconfig , INISEC_GLOBAL , "dbus daemon" , DBUS_DAEMON_PATH );
493
- LOG (log_note , logtype_default , "Starting dbus: %s" , dbus_path );
494
- if ((dbus_pid = run_process (dbus_path , "--config-file=" _PATH_CONFDIR "dbus-session.conf" , NULL )) == NETATALK_SRV_ERROR ) {
495
- LOG (log_error , logtype_default , "Error starting '%s'" , dbus_path );
496
- netatalk_exit (EXITERR_CONF );
497
- }
498
-
499
- /* Allow dbus some time to start up */
500
- sleep (1 );
491
+ dbus_path = atalk_iniparser_getstring (obj .iniconfig , INISEC_GLOBAL , "dbus daemon" , DBUS_DAEMON_PATH );
492
+ LOG (log_note , logtype_default , "Starting dbus: %s" , dbus_path );
493
+ if ((dbus_pid = run_process (dbus_path , "--config-file=" _PATH_CONFDIR "dbus-session.conf" , NULL )) == NETATALK_SRV_ERROR ) {
494
+ LOG (log_error , logtype_default , "Error starting '%s'" , dbus_path );
495
+ netatalk_exit (EXITERR_CONF );
501
496
}
502
497
498
+ /* Allow dbus some time to start up */
499
+ sleep (1 );
500
+
503
501
set_sl_volumes ();
504
502
505
- if (atalk_iniparser_getboolean (obj .iniconfig , INISEC_GLOBAL , "start tracker" , 1 )) {
506
- LOG (log_note , logtype_default , "Starting indexer: " INDEXER_COMMAND " -s" );
507
- system (INDEXER_COMMAND " -s" );
508
- }
503
+ LOG (log_note , logtype_default , "Starting indexer: " INDEXER_COMMAND " -s" );
504
+ system (INDEXER_COMMAND " -s" );
509
505
}
510
506
#endif
511
507
0 commit comments