Ability to synchronize between multiple machines
I work across two machines primarily and would really like to sync my Flowtime data. I believe that Flowtime stores its data in $HOME/.var/app/io.git...flowtime/data/statistics.xml and wanted to know if you think there would be any issue syncing this file across machines with something like Resilio or Syncthing?
Would this work as long as I don't have a timer running on both machines simultaneously? I guess it depends on when Flowtime reads/writes to this file. Could you provide some insight into whether this would work?
Thank you for the great app by the way, it introduced me to Flowtime when I came across your app searching for a Pomodoro app. I hadn't heard of Flowtime before but it seems to alleviate many of the issues I had with Pomodoros.
Hello there! I don't think there should be any issues. The only problem that I can imagine is when Flowtime runs on both machines at the same time, as the two apps cannot know the time the other one has.
Also, thank you so much for your kind words. :smile:
When exactly does Flowtime read/write the statistics.xml file? If it re-reads from disk when going to the stats tab then it seems like the only issue would be if I were running the timer on both machines at the same time. If the app was only open on both machines at the same time it doesn't sound like it would cause a conflict. Is this a correct understanding?
Flowtime reads the file only when the application is launched. From that point, Flowtime will only write the XML file. In consequence, Flowtime will override all changes made by other applications when it closes. This means that two Flowtime instances cannot write on top of the same file at the same time as both will override whatever the other has written.
When exactly does Flowtime read/write the statistics.xml file? If it re-reads from disk when going to the stats tab then it seems like the only issue would be if I were running the timer on both machines at the same time. If the app was only open on both machines at the same time it doesn't sound like it would cause a conflict. Is this a correct understanding?
On Mon, Jun 20, 2022 at 4:01pm, Diego Iván < @.*** @.*** > wrote:
Hello there! I don't think there should be any issues. The only problem that I can imagine is when Flowtime runs on both machines at the same time, as the two apps cannot know the time the other one has.
Also, thank you so much for your kind words. 😄
— Reply to this email directly, view it on GitHub [https://github.com/Diego-Ivan/Flowtime/issues/28#issuecomment-1160802852] , or unsubscribe [https://github.com/notifications/unsubscribe-auth/AAAQAI6ZZPIDFDMHGSI4RCTVQDEZVANCNFSM5ZJNEWPQ] . You are receiving this because you authored the thread. Message ID: <Diego-Ivan/Flowtime/issues/28/1160802852 @ github . com>
[ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/Diego-Ivan/Flowtime/issues/28#issuecomment-1160802852", "url": "https://github.com/Diego-Ivan/Flowtime/issues/28#issuecomment-1160802852", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.": "Organization", "name": "GitHub", "url": "https://github.com" } } ]