This forum has been archived. All content is frozen. Please use KDE Discuss instead.

knotes

Tags: None
(comma "," separated)
royread
Registered Member
Posts
2
Karma
0

knotes

Tue Nov 08, 2016 11:49 am
Hello,

Before upgrading from kubuntu 14.04 to 16.04 I took a complete backup of by folders and files (including hidden) thinking I could copy over data to the new version.

I have completely failed to find the folder/file with my knotes in it.

Can someone tell me where the knotes data ( the actual text of the notes ) are stored?

Thank you very much

Roy
wolfi323
Registered Member
Posts
1129
Karma
11
OS

Re: knotes

Tue Nov 08, 2016 1:06 pm
knotes before 4.13 stored the notes in ~/.kde/share/apps/knotes/notes.ics, newer versions use a standard maildir format and store the notes an a subfolder of ~/.local/share/notes/ (the actual location may differ depending on the resource configuration).

You cannot just copy them over, because the format has changed.

knotes should migrate them on first start though if the KDE4 kresources are properly set up, i.e. if ~/.kde/share/config/kresources/notes/stdrc exists and points to the notes.
It should look similar to this:
Code: Select all
[General]
PassiveResourceKeys=
ResourceKeys=aEJOauTlK8
Standard=aEJOauTlK8

[Resource_aEJOauTlK8]
NotesURL[$e]=file://$HOME/.kde/share/apps/knotes/notes.ics
ResourceIdentifier=aEJOauTlK8
ResourceIsActive=true
ResourceIsReadOnly=false
ResourceName=Notizen
ResourceType=file

The "ResourceName" is arbitrary, the identifier too (should be the same everywhere though).
And the NotesURL should point to where the file is really located.

You can retrigger the migration by deleting the file ~/.kde/share/config/knotes-migratorrc (or ~/.config/knotes-migratorrc for the KF5 version, but I'm not sure whether that still does the migration at all, nor which version is included in Kubuntu 16.04).

Creating new notes and copy/pasting the text from notes.ics manually should work in any case though... ;)

PS: I just noticed that akonadi still comes with an "akonadi_notes_resource", adding such a resource (in akonadiconsole e.g.) and pointing it to the notes.ics file may work too... (haven't tried though)
Note that you need to pick the "Notes" resource, not "akonotes" which is the new one.
royread
Registered Member
Posts
2
Karma
0

Re: knotes

Wed Nov 09, 2016 4:46 pm
Thanks wolfi, got it sorted with your help.

Roy


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]