access contacts command line?
Is there a way to acces/query contacts from command line? I know that's a hackish question ;)
We have moved to a new Sailfish OS Forum. Please start new discussions there.
Is there a way to acces/query contacts from command line? I know that's a hackish question ;)
Yes.
From terminal:
Well you can do something like this:
sqlite3 /home/nemo/.local/share/system/privileged/Contacts/qtcontacts-sqlite/contacts.db "select * from phonenumbers where contactId=38;"
and that contactId is the first column from contacts-table (select * from contacts;).
tigeli ( 2014-06-03 21:55:33 +0300 )Oh, sweet! Didn't realized it was a more complex data structure! Cheers for that mate!
maddler ( 2014-06-03 22:00:38 +0300 )Yes, there's contacts-tool, note that you need to be privileged user in order to read the database(devel-su -p )
Cheers! But I thing the sqlite way best matches what I'm planning to do.
maddler ( 2014-06-03 22:02:40 +0300 )This thread is public, all members of Together.Jolla.Com can read this page.
Asked: 2014-06-03 21:13:35 +0300
Seen: 598 times
Last updated: Jun 03 '14