Contacts not visible in contacts app after import via CLI
I decided to treat myself to a Jolla for Christmas now that TOHKBD is coming. Obviously I wanted to import all of my contacts from my old N900. I searched the web and found instructions for doing it in various ways. I decided to try the vCard method first. Export from N900 with osso-addressbook-backup went well enough, but after transferring the file to Jolla the problems began. The device just plain refused to see the file. I tried putting it in Documents, Downloads, or the root storage directory (i.e. the nemo user's home directory). I tried moving it away from the device and back. I made sure the file extension is .vcf, and checked that Windows can read the contacts from it. I copied it to a Linux computer and used my tools there to make sure all lines ended in \r\n (after import most lines did but the terminating line of each contact had \n only). But every time I select "Import contacts from file" on Jolla, it says there are no vCard files.
At this point I also tried importing over Bloetooth. Pairing the devices seemed to work, but when it should have shown a list of contacts to import, instead the contacts app activated and showed an empty contact list. So no luck there either.
After a bit more searching I stumbled upon the vcardconverter program. Documentation was parse, but given the optional --export switch, I guessed that not giving that switch would cause it to import. I was correct. Only, the damn contacts still do not show up on the phone's screen! If I do contacts-tool list, I get a list of the 150 contacts I imported. Inspecting the file .local/share/system/privileged/Contacts/qtcontacts-sqlite/contacts.db with sqlite3 turns up nothing though, and vcardconverter --export produces an empty file. Grepping for various contact names consistently turns up .cache/tracker/meta.db and nothing else.
So:
- Where did the contacts go when I used vcardconverter?
- Why are there even two separate places for contacts?
- How do I get the damn things visible in the UI so I can actually start using my Jolla?
This morning the .vcf file appeared in the import list, but importing the contacts still didn't work. However, I was able to transfer the contacts over Bluetooth by sending them from the N900. My immediate problem is thus solved, but I'd still like to know if I did something wrong with the vCard file.
tdb ( 2014-12-25 11:37:08 +0200 )edit