zztin / ctimer

This is a python implementation of a famous time management technique. CTimer helps you keep track of your productivity during the day, and help you set realistic goals for your day.
Apache License 2.0
0 stars 1 forks source link

[Feature Request] Customize ctimer.db location (in case of sharedrive) #26

Closed zztin closed 3 years ago

zztin commented 4 years ago

Is your feature request related to a problem?

Now the ctimer is located within the package itself and cannot be share between different computers. If we allows users to store the files by their choice, they can save it on a cloud folder which automatically updates. In this case, the database can be shared amount different devices of the same users (or even shared between team members).

Describe the solution you'd like

Customize ctimer.db saving path. Next time, the program should find back this parameter. (The parameter of path route could be save in a txt file as a path in computer's home folder .ctimer or so.)

Describe alternatives you've considered

tai271828 commented 4 years ago

Per discussion, we may use symbolic links to achieve synchronizing. So what we need to do is only adding one more extra argument to customize the db path.

zztin commented 4 years ago

As @tai271828 suggested. This could be done outside of the ctimer codebase. Step to achieve this:

  1. go to your share drive location. cd <drive_location_for_ctimer.db>
  2. ln -s <original_location_for_ctimer.db> ./ctimer.db

However, two questions arise with this solution.

  1. Updates from different computers replace each other instead of syncing?
  2. While viewing overall performance, the program refers to the local ctimer.db and is unaware of the other computers' update (in case where 1 is actually performing syncing correctly)?
zztin commented 3 years ago

The user can now define database path and the path will be access in next login. commit:49a18c496e7861d385b7650d49ef87523ae13aca