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

KNotes unable to save [not solved but resolved]

Tags: None
(comma "," separated)
MindlessZombie
Registered Member
Posts
2
Karma
0
OS
Hi,

I'm running KDE 4.4 on Arch (fully up-to-date). I've only been using KDE for a week or two, and only intended to try it out of curiosity, but I've sort of fallen in love with it. This surprises me, as previously I was flipping between Awesome and dwm, and have never used a large desktop environment before.

I'm just trying to find out where it stores the config file for KNotes.

Originally I had KDEMod installed. Today I removed it and installed Arch's vanilla KDE. KDEMod stored settings in a folder called .kdemod4, Arch's vanilla KDE stores everything in .kde4. I uninstalled KDEMod completely, moved the .kdemod4 folder, then installed Arch's KDE.

I tried to save a note earlier and got this error message:

Unable to save the notes to /home/[user]/.kdemod4/share/apps/knotes/notes.ics. Check that there is sufficient disk space. There should be a backup in the same directory though.

in ~/.kde4/share/config there is a knotesrc file, but this doesn't contain anything about where KNotes saves to.

I've done some googling but there were very few results and none were relevant. I checked the UserBase page for Kontact, which does have a section called "Migrating your setup to a new distro", but this says: "If the directory naming is different between Desktops ... this will not work as there are references to the directories within the config files."

Is this really true, or is there a simple config file I can amend to force KNotes to save to the correct folder??

Thanks.

Last edited by MindlessZombie on Wed Feb 17, 2010 8:16 pm, edited 1 time in total.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: KNotes unable to save

Wed Feb 17, 2010 6:22 am
As a quick workaround, you could do the following:

Code: Select all
ln -s ~/.kde4/ ~/.kdemod4/


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
annew
Manager
Posts
1155
Karma
11
OS

Re: KNotes unable to save

Wed Feb 17, 2010 12:09 pm
As far as I know, the notes are actually saved within KOrganizer. The directory /home/anne/.kde/share/apps/knotes/ and the file /home/anne/.kde/share/apps/knotes/notes.ics containt the data needed to find the entries - at least that seems to be so. Within knotes/ I have 5 entries. Examining one of them gives me
Code: Select all
[Editor]
richtext=true

[General]
version=3.9

[WindowDisplay]
HideNote=true
desktop=1
position=35,0


I'm wondering if you have not used KOrganizer, and it therefore can't make sensible link entries? Of course this is pure guesswork and could be entirely off-beam


annew, proud to be a member of KDE forums since 2008-Oct and a KDE user since 2002.
Join us on http://userbase.kde.org
MindlessZombie
Registered Member
Posts
2
Karma
0
OS
bcooksley wrote:As a quick workaround, you could do the following:

Code: Select all
ln -s ~/.kde4/ ~/.kdemod4/


Thanks for the suggestion. I'd thought of symlinking but I wasn't keen - it just seemed a bit of a messy workaround.

annew wrote:I'm wondering if you have not used KOrganizer, and it therefore can't make sensible link entries? Of course this is pure guesswork and could be entirely off-beam


Unfortunately I saw your suggestion a little too late - I spent my lunch hour doing a quick Arch reinstall. I thought it would be quicker than spending hours trying to resolve this.

A fresh install of Arch with Arch's KDE is running beautifully. :)

I'm still surprised at how good KDE is and how much I like it. The first window manager I ever used was Fluxbox. I've also spent a lot of time in E17, Openbox, Awesome, XMonad and dwm. I'm so used to using light WMs and installing various apps/panels, etc. If you'd told me even a couple of months ago that I'd be using KDE and loving it, I wouldn't have believed you :D
User avatar
annew
Manager
Posts
1155
Karma
11
OS
You're bound to find some things that you need to ask about. If you can't find the answer on userbase, there's always someone to answer you.


annew, proud to be a member of KDE forums since 2008-Oct and a KDE user since 2002.
Join us on http://userbase.kde.org
User avatar
ava1ar
Registered Member
Posts
1
Karma
0
OS
Looks like I found file where this setting is being stored - look at /home/<user>/.kde4/share/config/kresources/notes/stdrc
User avatar
barbyyyyyy
Registered Member
Posts
1
Karma
0
OS
Hi all,

I had a very similar problem trying to copy notes from KNotes from one PC to another.

I finally realized that it was all a matter of permissions:

sudo chown -R user:user /home/user/.kde/share/apps/knotes/
sudo chmod +w /home/user/.kde/share/config/knotesrc
sudo chown user:user /home/user/.kde/share/config/knotesrc


maybe someone can come in handy :)

bye
User avatar
annew
Manager
Posts
1155
Karma
11
OS
This usually happens when you change distros to one with a different policy on UIDs. A fine example is that some Debian-based distros give users numbers starting at 1000 while many (most?) rpm-based distros start user numbering at 500. The numbers are what counts, in this situation, not the user name. Another cause of the problem is having multiple users on one box, and not adding them in the same order when you install a new distro. Using chown, therefore, is the right answer for this type of situation.


annew, proud to be a member of KDE forums since 2008-Oct and a KDE user since 2002.
Join us on http://userbase.kde.org


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]