Home Notes Other Synchronizing Klok between computers

Synchronizing Klok between computers E-mail
Tuesday, 21 February 2012 05:16

If you use the Adobe AIR application Klok for time-tracking, there's a small caveat to watch out for if you wish to synchronize your time data between computers using something like Dropbox or Windows Live Mesh.  Basically, if the path of your Klok installation differs from one machine to the other, you don't want to sync all the files in the Klok folder but only the main database file.

 

Klok stores its data in a file called klok.db, but there are a few other files in there as well, one of which I found to be to cause problems in synchronization between machines.  That file is config.xml, which looks like the following:

<config>
 
  <data-file-location>C:\Users\<User>\AppData\Roaming\
 
Klok2.DD7F2188B985C2439837C76B42A187050457E61B.1\Local Store
 
</data-file-location>
 
  <check-for-updates>true</check-for-updates>
 
  <next-update-check>03/21/2012</next-update-check>
 
  <auto-snap>false</auto-snap>
 
  <snap-interval>15</snap-interval>
 
  <first-day-of-week>0</first-day-of-week>
 
  <left-panel-size>200</left-panel-size>
 
  <skin>assets/KlokNightSkin.swf</skin>
 
  <zoom-start>NaN</zoom-start>
 
  <zoom-end>NaN</zoom-end>
 
  <clock-mode>twelveHourMode</clock-mode>
 
  <date-format>MM/DD/YYYY</date-format>
 
  <minimize-to-tray>false</minimize-to-tray>
 
  <automatically-backup>false</automatically-backup>
 
  <backup-delay>7</backup-delay>
 
  <next-backup-date>1330400138787</next-backup-date>
 
  <total-time-mode>totalAsTimeCode</total-time-mode>
 
  <last-backup-date>-1</last-backup-date>
 
  <timesheet-export-format>XLS</timesheet-export-format>
 
  <connector-debug-enabled>false</connector-debug-enabled>
 
  <backup-folder>C:\Users\<User>\AppData\Roaming\
 
Klok2.DD7F2188B985C2439837C76B42A187050457E61B.1\Local Store\backups
 
</backup-folder>
 
  <new-entry-size>60</new-entry-size>
 
  <recent-projects-size>5</recent-projects-size>
 
  <window-width>800</window-width>
 
  <window-height>600</window-height>
 
  <window-x>100</window-x>
 
  <window-y>100</window-y>
 
</config>
Note <data-file-location>, the first data node in the file.  That file location needs to be the same between your different machines in order to synchronize the full Klok folder.  If the installation directories are different, i.e., that line is different between your two Klok installations, you want to just synchronize klok.db.