-
Notifications
You must be signed in to change notification settings - Fork 250
Tips and Tricks
Gerald Jansen edited this page Sep 10, 2019
·
19 revisions
See https://github.com/projecthamster/hamster/issues/340#issuecomment-324387786
Original request here. You can easily create one as follows:
- stop hamster (eg.
pkill -ef hamster
) - make a backup copy of your current hamster.db
mv ~/.local/share/hamster-applet/hamster.db ~/bu-hamster.db
- restart hamster (which will create a new empty DB) and then enter some example activities
- stop hamster again and save your entries as a dummy-hamster.db
mv ~/.local/share/hamster-applet/hamster.db ~/dummy-hamster.db
- restore your backup copy, then restart hamster
cp ~/bu-hamster.db ~/.local/share/hamster-applet/hamster.db
Of course, to do testing/demonstration, you'd need to put the dummy-hamster.db back as ~/.local/share/hamster-applet/hamster.db, which is a real bother. You could automate this with scripts, softlinks etc.. However, it would probably be best to have a separate environment for testing/demo, say a dedicated userid or a separate VM.
$ gconftool-2 -a /apps/hamster-time-tracker
stop_on_shutdown = false
day_start_minutes = 240
...
$ gconftool-2 --set /apps/hamster-time-tracker/day_start_minutes --type=int 240 # 04:00