Skip to content
Snippets Groups Projects
  1. Jan 17, 2020
  2. Jan 13, 2020
  3. Jan 10, 2020
  4. Dec 13, 2019
  5. Dec 12, 2019
  6. Dec 02, 2019
  7. Nov 29, 2019
  8. Nov 28, 2019
  9. Nov 20, 2019
  10. Nov 07, 2019
  11. Nov 05, 2019
    • Julian Sparber's avatar
      Add dbus API for adding contact with preset properties · 19078a35
      Julian Sparber authored and Julian Sparber's avatar Julian Sparber committed
      The API takes an array of (key, value) pairs.
      
      Supported keys:
      This can be specified multiple times
      "email-addresses", "notes", "phone-numbers"
      Only the last will be stored (because this properies are unique)
      "alias", "full-name", "nickname"
      
      Not all properites are supported for now because they can't be
      easily set via dbus because they arn't a string
      
      The API can be used via gdbus as well
      gdbus call --session --dest org.gnome.Contacts --object-path  /org/gnome/Contacts --method org.gtk.Actions.Activate 'new-contact-data' '[<[("email-addresses", "julian@sparber.net"), ("phone-numbers", "+39333333"), ("email-addresses", "secondo@example.com")]>]' '{}'
      19078a35
  12. Nov 04, 2019
Loading