! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
2: detect external changes to ~/.local/share/orage/ (for sync purposes)
Status:
CLOSED: FIXED

Comments

Description Liv 2012-09-12 10:01:20 CEST
This report is somewhat related to bug 7759 and Bug 7873. (And it is in the same spirit as Bug 9283 for the Notes plugin.) 

It seems that Orage is unable to detect external modifications to files in ~/.local/share/orage/, especially to the orage.ics file (see Bug 7873). 

This is a problem when using an external program (e.g. SpiderOak) to sync Orage events between computers. What happens is that the events get saved on Computer 1, SpiderOak backs them up automatically to its servers, I close down C1, open C2, Orage opens with the _old_ version of the events, then SpiderOak on C2 checks the files on its servers and detects a newer latest version of the events, and subsequently it downloads the latest orage.ics to C2. Since Orage doesn't detect external changes, it still operates with the old events, and this is a recipe for data loss. (It can always be reverted via SpiderOak, but it gets messy.) 

Would you consider implementing polling for external modifications of the text files in ~/.local/share/orage/ and automatic reloading from disk of the files? Perhaps with a confirmation dialogue: 'Cancel/Keep old events', 'Reload orage.ics from disk'?
Comment 1 juha editbugs 2012-09-14 09:11:37 CEST
Yes, I definitely agree. This is already used for teh foreign files and should be used also for the base files.
Comment 2 juha editbugs 2013-11-15 09:10:09 CET
Done in 4.9.8.0.

Orage logs all noticee foreign changes ot log file. No customer visible alarms are shown.

IF you are updating an appointment, which vanishes due to the external file copy, Orage gives error and does not allow update. This should happen very seldom.
Comment 3 Liv 2013-11-16 20:13:42 CET
(In reply to juha from comment #2)
> Done in 4.9.8.0.
> 
> Orage logs all noticee foreign changes ot log file. No customer visible
> alarms are shown.
> 
I've just tested the functionality, and it worked as expected. Really nice!

I'm curious: where does Orage keep the log file?
Comment 4 juha editbugs 2013-11-17 08:48:39 CET
Well....log file was bad word. Orage just writes those to terminal and when started from background those go to .xsession-errors, which is what I meant.
Comment 5 juha editbugs 2013-12-11 08:09:56 CET
Fixed in 4.10.0

Bug #9291

Reported by:
Liv
Reported on: 2012-09-12
Last modified on: 2013-12-11

People

CC List:
0 users

Version

Attachments

Additional information