Captain's Log (updated)

Your rating: None Average: 4.8 (10 votes)

Captain's Log is a simple diary application for keeping track of your thoughts.


  • lockscreen to restrict access
  • bookmark entries
  • add hashtags
  • browse your entries by different filters
  • export your data to different file formats

Note: Captain's Log can hide your entries behind a protection code but it's nothing special. Your data is neither encrypted nor otherwise protected against a bad guy with physical access to your device.

Captain's Log is written in pure Python and QML. It is free software released under the GNU GPL v3+. The source code of this version is available here: The original sources are available here:

This is the continuation of the old Captain's Log by AlphaX2.

(All texts used in the screenshots are random quotes from "Walden" by H. D. Thoreau.)



Application versions: 
File harbour-captains-log-2.0.0-1.noarch.rpm136.46 KB18/06/2020 - 15:02
File harbour-captains-log-2.0.0-2.noarch.rpm136.59 KB18/06/2020 - 16:02
File harbour-captains-log-2.0.1-0.noarch.rpm133.03 KB12/11/2020 - 14:39
File harbour-captains-log-2.1.0-1.aarch64.rpm132.38 KB30/03/2022 - 02:34
File harbour-captains-log-2.1.0-1.i486.rpm133 KB30/03/2022 - 02:34
File harbour-captains-log-2.1.0-1.armv7hl.rpm131.61 KB30/03/2022 - 02:34

Changes in version 2 (and up) by ichthyosaurus. Maintenance and further development have been moved here. Thank you, AlphaX2, for developing the app until now! :)

version 2.1.0-1: Mar 24 2022

  • translations: added Chinese, updated Swedish
  • added support for My Backup
  • added a Sailjail profile (only permission is "Documents" for exporting)
  • fixed some highlight colors
  • fixed data being saved outside of the new sandbox
  • fixed settings being saved in the wrong location (automatically migrated)
  • changed export output directory from "/home/" to "/home//Documents"
  • updated About page (now using Opal.About)
  • reduced overall package size

version 2.0.1-1: Nov 12 2020

  • fixed a serious bug where entries could not be opened or edited

version 2.0.0-2: Jun 18 2020

  • hotfix: fixed a typo in the German translation

version 2.0.0-1: Jun 18 2020

  • completely overhauled the user interface
  • added the GPL where necessary
  • added support for automated database schema upgrades
  • changed the database layout (database updates itself)
  • > added support for time zones
  • > added field for possible future feature: audio notes
  • > changed internal date format from "dd.MM.yyyy | hh:mm" to (standard) "yyyy-MM-dd hh:mm:ss"
  • > save seconds
  • > renamed 'favorites' to 'bookmarks' (an important entry is not necessarily my favorite)
  • added a new cover page
  • simplified reloading, improving performance (changes no longer require a full reload)
  • added new mood "not okay": "okay" is slightly positive, "not okay" is slightly negative; there is no "neutral" mood (database updates itself)
  • refactored export features
  • > made exports translatable
  • > added new export options: plain markdown and markdown for pandoc
  • updated the German translation to use polite "Sie"
  • replaced app icon by new, more "sailfishy" variant
  • implemented quickly changing the mood of an entry in the overview list
  • implemented searching for entries between two dates

version 1.0-2: Apr 19 2020

  • added Swedish translation

version 1.0-1: Apr 15 2020

  • initial release


silta's picture

Hi, I can export my data (diary). Is it possible to import them in a new installation of Captain's Log?
Thanks in advance, silta.

ichthyosaurus's picture

Exporting is currently more targeted at printing.

If you want to backup your diary, you can simply copy the database and put it back later. Copy these two files (both! - or the whole folder):

  • /home/defaultuser/.local/share/harbour-captains-log/harbour-captains-log/logbook.db
  • /home/defaultuser/.local/share/harbour-captains-log/harbour-captains-log/schema_version

You may have to replace "defaultuser" by "nemo". When using File Browser, you can tap the burger menu icon and select "edit path", then enter the path.

ichthyosaurus's picture

@everyone who could not edit entries: please install the update to 2.0.1!

DrYak's picture


Also a Captain's Log v2.0.0-2 on an up to date OS

And I, too, am getting nothing when I select the "edit" in the long press menu. The only message I get each time I attempt is:

[W] unknown:74 - file:///usr/share/harbour-captains-log/qml/components/EntryElement.qml:74: ReferenceError: modify_tz is not defined

Any idea?

(The few couple of entries I have in the SQlite3 database, all have `modify_tz` set to `NULL`)

ichthyosaurus's picture

The few couple of entries I have in the SQlite3 database, all have `modify_tz` set to `NULL`

Thank you for this hint! This was exactly the problem. The new update should no longer choke on cases like this.

I couldn't reproduce the problem up until now, so I didn't know you could not even open an entry! With the new update you can (again) click on an entry to read it in full and see more details.

DrYak's picture


Confirmed to work, now.

Brummkreisel's picture

Also unable to edit created entries.
It's simply not possible...

ichthyosaurus's picture

Did you update to SFOS 3.4? Then please see my comment below:

If not: can you elaborate? You can edit entries by long-pressing and selecting "edit", or by by tapping an entry and selecting "edit" from the top pulley menu. Does one of the options work? (Do you swipe right to save?)

Please run "sailfish-qml harbour-captains-log" in terminal, try to edit and save an entry, and check the output. If everything is fine, it should look like this:

[D] loadModel:126 - loading entries...
database schema is up-to-date (version: 5)
[D] :206 - loaded
[D] :103 - Updated entry in database

Please post here if it looks differently.

Brummkreisel's picture


I've installed As you said I run

devel-su pkcon install python3-sqlite

but received:

python3-sqlite-3.8.1+git7-1.3.1.jolla.arm7hl is already intalled.

Adding entries works fine. After long press the options edit/delete are appearing.

Delete works, but when I choose edit, the options are disappearing and that's it.

Running sailfish-qml harbour-captains-log opens a white blank screen and gives me:

[D] unknown:0 - Using Wayland-EGL
[D] unknown:0 - Specified Desktop file does not exist "/usr/share/applications/harbour.desktop"
[W] unknown:-1 file:///usr/share/harbour/qml/harbour.qml: File not found

Please advise how this can be solved.

ichthyosaurus's picture

So we can rule out sqlite, at least...

Looks like you accidentally added a whitespace between "harbour" and "captains-log". There has to be a dash.

sailfish-qml harbour-captains-log

Please run this again. It is the same command that's executed when you tap the icon - so if it does not start, there's almost certainly a problem on the command line. Then try to edit an entry. Then check the output.

I also checked the package and all files are fine, so that's not the problem either.

Another thing you can try:

- make a backup copy of the database (folder /home/nemo/.local/share/harbour-captains-log)

- uninstall the app

- make sure no files are left behind: check if /usr/share/harbour-captains-log is gone, or delete it (you can use File Browser's root mode for this, but be careful)

- install the app again

- check if it works now

This is more effort, so you might want to try running it from the terminal before.

Brummkreisel's picture

You're right, I had a typo... :-(

The correct command gives me:

[D] unknown:0 - Using Wayland-EGL

[D] unknown:0 - Got library name:  "/usr/lib/qt5/qml/io/thp/pyotherside/"

[D] loadModel:126 - Loading entries...

database schema is up-to-date (version: 5)

[D] :206 - loaded

[W] unknown:74 - file:///usr/share/harbour-captains-log/qml/components/EntryElement.qml:74: ReferenceError: modify_tz is not defined

I also tried the second way as described. The only file what was left in the folder sailfish-qml harbour-captains-log was instance.lock (with 0 Bytes) in


After a new intallation I was able to edit an entry one time.

EDIT 20/11/01: After the last reboot, everything works as expected... and I have no idea, how this can be. I didn't change anything. Thank you anyway for looking into my matter.


ichthyosaurus's picture

Well, I'm really happy the problem fixed itself :)!

(The error message hints at a problem with the database backend, which in turn might have been a problem with Python. We'll never know...)

lumen's picture

Hello, thanks for nice app! The update made my old notes disappear. Any ideas how to locate them back?

ichthyosaurus's picture

I just saw the latest update to gPodder and there's the solution to our problem:


It seems Jolla made a booboo and forgot to install python3-sqlite in the update which not only breaks our stuff but also theirs, the fix is simple - devel-su pkcon install python3-sqlite

To try and prevent this from happening we'll also put out a release with python3-sqlite added as an explicit dependency soon.


Annoyingly, the Sailfish SDK is currently broken on my system due to complicated stuff with Virtualbox, so I won't be able to release an update soon. Running "devel-su pkcon install python3-sqlite" should fix it, though!

ichthyosaurus's picture

Oh no!

They are (were) saved at /home/nemo/.local/share/harbour-captains-log/logbuch.db (plus the version file). Is it possible that there's a new home directory and not all files are moved?

Also, it uses Python to access the database. Can you check if this prints the correct home path in Python:

import os


achilles07's picture

unable to edit created items. can you please check?

ichthyosaurus's picture

Sorry for the delay.

I'm using this version almost daily without any problems. Editing works fine. Can you explain how and when the error appears?