Akonadi i la llibreta d'adreces

    From KDE UserBase Wiki
    Revision as of 13:05, 18 March 2011 by Abella (talk | contribs) (Created page with "La configuració del servidor '''Akonadi''' són alguns fitxers desats a ''$HOME/.config/akonadi''. Això pot canviar-se a traves de variables d'entorn, $XDG_DATA_HOME i $XDG_CON...")

    Aquesta informació ha estat proporcionada per en Tobias Koenig, desenvolupador de KDE-PIM.

    Algunes definicions

    Per dades reals entenem les dades, com els contactes o esdeveniments. Aquestes dades són desades o en un servidor groupware o en fitxers locals. On exactament dependrà del recurs que estigueu utilitzant. Per exemple, el recurs Contactes personals desa les seves dades a $HOME/.local/share/contacts mentre que el recurs Fitxer VCard (l'ús del qual no es recomana ) desa les seves dades a $HOME/.kde/share/apps/kabc/std.vcf.

    Les dades desades al cau són còpies de les dades reals que estan desades a la base de dades per a un accés més ràpid i una utilització sense connexió. La base de dades també conté les meta-dades, que són dades per a la gestió necessàries per a que Akonadi funcioni correctament.

    Les dades de configuració són les dades que configuren el servidor Akonadi i els recursos individuals. Les dades de configuració per al servidor es troben a $HOME/.config/akonadi, i les configuracions dels recursos es troben en la seva majoria a $HOME/.kde/share/config/akonadi_xyz_resourcerc# (xyz és el nom del recurs i # el seu nombre d'instància).

    La configuració del servidor Akonadi són alguns fitxers desats a $HOME/.config/akonadi. Això pot canviar-se a traves de variables d'entorn, $XDG_DATA_HOME i $XDG_CONFIG_HOME, sent els seus valors per omissió $HOME/local/share i $HOME/.config respectivament. Els fitxers contenen informació sobre les fonts de dades i els programes d'assistència actius, els quals seran iniciats i vigilats (perquè puguin reiniciar-se en cas d'un error greu) per un dels processos del servidor Akonadi (akonadi_control). El directori base local de KDE es pot canviar amb la variable d'entorn $KDEHOME, sent el seu valor per omissió $HOME/.kde (o $HOME/.kde4 si el distribuïdor ha canviat el valor per omissió aplicant un pedaç en el codi).

    Veure:

    kde4-config --path data

    Each data source handler (called resources) or helper program (called agents) can have its own configuration although some agents or resources don't require configuration. The general rule is that for every entry in $HOME/.config/akonadi/agentsrc there is a corresponding configuration file in $HOME/.kde/share/config. For example, if the [Instances] section in agentrc contains an entry for akonadi_ical_resource_2, there is also a config file called akonadi_ical_resource_2rc in the KDE config directory.

    Depending on the type of data, such config files for resources will have filenames or directory names of where the data is stored. Common locations are KDE's legacy default files, e.g. $HOME/.kde/share/apps/korganizer/std.ics. New default locations are files and directories in $HOME/.local/share, e.g. $HOME/.local/share/contacts.

    For now (as in actually released versions) the database is merely used for caching and keeping structural information (e.g. which addressbook a contact belongs to). This will change when Akonadi is being used for email, since state information like read/unread is also stored there (unless the backend is also capable of doing this, e.g. IMAP).

    Organitzar les còpies de seguretat

    So now we need to decide what to back up. If you want to backup the "real data", then it depends on the resources you have configured... if you use a groupware server, then the backup should be done there. For contacts, the files under $HOME/.local/share/contacts will normally be what you need.

    The Akonadi tray icon offers you a backup and restore function. That backs up the "cache data" which might not include all of your data! It can be helpful if you want to clone a system 1:1, then you can copy the cached data together with the real data and the configuration, so you don't have to load the data again from the sources (e.g. groupware server).

    Examinar els vostres recursos

    KRunner offers you Akonadi Resource Configuration, or you can access this through the Akonadi tray icon -> Configure. You may find several resources set up. You may find one labelled

    Address Book - No KDE address book plugin configured yet.

    That's the old compatibility bridge (possibly created by the migrator tool). You should remove this one!

    std.vcf - Ready

    This is the VCard File Resource which points to $HOME/.kde/share/apps/kabc/std.vcf per default. It is not recommended that you use that one, as it doesn't share the benefit of Akonadi.

    Personal Contacts - Offline

    That's the preferred resource for your local contacts which points to

    $HOME/.local/share/contacts

    Note that this may say "Offline" when in fact you are using it. This is a display bug, and can safely be ignored.

    I quan els diversos components utilitzen Akonadi?

    When the rest of the components move to Akonadi, will all the data be under ~/.local/share? That should make backup easy. Well, contacts and mails are stored there now, I don't know what the plan for events/todos is, but it would make sense to store them there as well. We'll keep it in mind when discussion pops up!

    Solució de problemes

    Problem: You update to 4.6 and your addressbook is suddenly completely blank

    Solution: This is new behaviour in 4.6 - you can choose whether to display specific addressbooks or all of them. In front of each addressbook name there is a checkbox. Use that to enable the addressbooks you want to use.

    Pàgines relacionades

    Akonadi
    Solució de problemes amb Akonadi
    KAddressBook