Linux.com

Re:Didn't work on Ubuntu Dapper/Edgy

Posted by: Anonymous Coward on January 12, 2007 06:51 AM
Hello there, i'm also using ubuntu and this script didn't worked for me either, so i've started to debugging it and with the #kde-devel irc channel help i've managed to find the issue.

using this patch it would work.

--- kbbdb 2006-09-30 23:25:31.000000000 -0500
+++ kbbdb-tst 2007-01-11 17:45:55.000000000 -0500
@@ -182,12 +182,16 @@ END:VCARD

  ENDPRINT

      }

  }
+
+
+my ($argumento) = "`cat $tempfile`" ;
+

  #

  # Send the file to KAddressBook

  if ( @addresses )

  {

      close ( TEMP ) ;
- system ( "dcop kaddressbook KAddressBookIface importVCard file://$tempfile" ) ;
+ system ( "dcop kaddressbook AddressBookServiceIface importVCard\\(QString\\) \"$argumento\"" ) ;

      unlink ( $tempfile ) ;

  }

  exit ( 0 ) ;

#

Return to Automatically add contacts to KAddressBook with KBBDB