pop-os / launcher

Modular IPC-based desktop launcher service
Mozilla Public License 2.0
220 stars 42 forks source link

Include search of the system contacts app in launcher search #130

Open TC68 opened 2 years ago

TC68 commented 2 years ago

This is a feature request - I have contacts synced to Gnome Contacts through the online accounts settings. It would be very handy if a search for contact details could be done from the launcher.

canadaduane commented 1 year ago

The closest CLI tool I could find that might support a custom pop-launcher plugin around it was mutt-gnome-contacts, a fairly obscure (but simple!) vala compiled tool that provides name & email information to the Mutt email app.

Unfortunately, in my tests, it is quite slow. 3-5 seconds per query. I have about 600 contacts. This seems too slow for a plugin to have reasonable response time. Does anyone know of another way to get Gnome Contacts? In particular, a faster way?

mmstick commented 1 year ago

You can parse ~/.local/share/evolution/addressbook/system/contacts.db directly, and there's a photos directory in there too.

mmstick commented 1 year ago

Seems to be a sqlite3 database generated by libfolk.

canadaduane commented 1 year ago

I just spent a little time poking around the contacts.db file. In my case, it is empty, unfortunately. I assume this is because it is a "local addressbook" and not the synced google address book that Gnome Contacts has access to.

It's possible that access to a local address book would fit some needs, but I bet a lot of users would be in my situation as well--trying to list or view contacts that have been synced from google or another online source.

TC68 commented 1 year ago

Hi - in an earlier version of PopOS (can't remember which one) the gnome contacts database remained synced, and contacts would show up in a global search.

Currently, gnome contacts does not stay synced (on my system) and has to import my google contacts every time I open it. This probably wouldn't help the situation.

I mostly rely on thunderbird for contact management, but it would be nice to have it in the system as well.

mmstick commented 1 year ago

Is the online source stored on the file system in a separate database?

canadaduane commented 1 year ago

Is the online source stored on the file system in a separate database?

I believe it must be, because my contacts are not in this db.