discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Associating bundle directories with app


From: Ivan Vučica
Subject: Re: Associating bundle directories with app
Date: Tue, 25 Jan 2011 22:40:44 +0100

On Tue, Jan 25, 2011 at 21:56, David Chisnall <theraven@sucs.org> wrote:

If it's just updating a cache, then it shouldn't be too bad in terms of performance.  It wouldn't need to read Info.plists from any .app that was already in the cache (maybe it could store the modification date in the cache and just stat the file to find out if it had been modified more recently, but you could probably just assume it hasn't, and do a proper update the next time the .app is launched, when the .plist is read anyway).

Since you typically only have 3 Applications directories, this would just involve the equivalent of three ls *.app commands in the common case, and a tiny bit more in cases where you've added one or two new apps recently.

Heh, I didn't think of it that - it could just add and parse newly added apps, just like the old ones could be removed. This sounds perfect!

--
Regards,

Ivan Vučica


reply via email to

[Prev in Thread] Current Thread [Next in Thread]