[Adium-devl] Exclusive write access when using AIXMLAppender?

disposable at infinitenexus.com disposable at infinitenexus.com
Tue Feb 20 01:42:28 UTC 2007


This isn't necessarily a good idea as there may well exist valid  
cases for multiple accesses to a profile. Specifically I think of  
SyncServices support, which requires a background helper app to  
access the synced contents and respond accordingly. This agent would  
need to access profiles and may well do so while Adium is running. It  
would be perfectly legal and need a modicum of interaction handling.

If a single entity has read/write access to a profile as you describe  
it essentially locks all data interaction to a single binary, and if  
multiple ones exist that can access this, it will lead to either  
conflicts or user level headaches. Starting at such a macro level  
without cause would be more problematic to me than anything (offhand  
statuses and other parts of a profile could well be accessed outside  
of Adium and shouldn't be blocked - like for the widget[s] that exist)

- brian 'bgannin' ganninger


On Feb 19, 2007, at 7:30 PM, Colin Barrett wrote:

> Or, we shouldn't allow multiple copies of Adium to be open with the
> same profile.
>
> Since this same sort of thing will happen with other files
> (preferences), and generally cause a mess. This is why the profile
> feature exists, essentially.
>
> -Colin
>
> On Feb 19, 2007, at 5:13 AM, Evan Schoenberg wrote:
>
>> I had 2 copies of Adium running at one point, both signed into AIM
>> on the same computer.  Messages were therefore received twice.  Any
>> logs which spanned that timeframe are corrupt, because the two
>> AIXMLAppender (one in each client) had a field day appending and
>> seeking, overwriting one another.  Can we open the log for exclusive
>> write access such that an attempt to write to it from another
>> location would fail?
>>
>> -Evan
>> _______________________________________________
>> Adium-devl mailing list
>> Adium-devl at adiumx.com
>> http://adiumx.com/mailman/listinfo/adium-devl_adiumx.com
>
>
> _______________________________________________
> Adium-devl mailing list
> Adium-devl at adiumx.com
> http://adiumx.com/mailman/listinfo/adium-devl_adiumx.com
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070219/07692ea5/attachment-0001.html>


More information about the devel mailing list