The daemon should try and monitor the sync process.

Bug #1573795 reported by Dubstar_04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ownCloud-sync
Triaged
Medium
Dubstar_04

Bug Description

Monitoring the sync process on each directory will allow the current status of each directory to be stored in the database. Something like:

Sync - local Dir - Remote Dir - Last Sync - Sync Required
Bool - string - string - QDate - Bool

Consider using QProcess::waitForFinished and collecting the exit status.

connect(process, static_cast(&QProcess::finished),
={ /* ... */ });

This will allow looping through each directory, checking if it needs to be synced, syncing and storing the sync datetime.

Changed in owncloud-sync:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Dubstar_04 (dubstar-04) wrote :

The standard owncloudcmd is very noisy even when using --quiet

Use QProcess::readAllStandardError() and/or QProcess::readAllStandardOutput() and check for critical error messages.

Format the messages in to usable data and write to log.

Revision history for this message
Dubstar_04 (dubstar-04) wrote :

Error can now be exposed via the dbus and displayed when starting the UI.

Changed in owncloud-sync:
assignee: nobody → Dubstar_04 (dubstar-04)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.