Addressbook framework without a regular user
Addressbook framework without a regular user
- Subject: Addressbook framework without a regular user
- From: Karl Kuehn <email@hidden>
- Date: Sun, 5 Jan 2003 12:59:22 -0500
I am trying to write a small program that I want to run as a daemon
process that uses the Addressbook.framework. When I run it as a general
test (from within PB.. so a regular, logged-in user) things run fine. I
can get the shared addressbook and view users. But if I try and run it
under daemon users (say... 'nobody') I get an error when I try and
'[ABAddressBook sharedAddressBook]'. I am not trying to touch the 'me'
object at all, but I think that the framework breaks when it tries to
set that up for me. I can setuid to get around the problem for now, but
I don't like that as a solution.
For the record, the errors are:
ABAddressBook could not aquireLock: writeLock error No such file or
directory: 'Framework/AddressBook/ABAddressBook.m' line:
1396
-[ABAddressBook _initDefaultContactManager] Can't _acquireLock
Framework/AddressBook/ABAddressBook.m:1403
Anyone got any ideas?
Karl Kuehn
email@hidden
PS.. I don't know if my setuid solution works when I am not logged in
completely (as in have the windowserver).
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.