[Adium-devl] Let's abandon disk images
iamtheari at gmail.com
Mon Apr 16 13:58:51 UTC 2007
On 4/16/07, Colin Barrett <timber at lava.net> wrote:
> On Apr 16, 2007, at 2:55 AM, Peter Hosey wrote:
> > We could use this by getting info on the main bundle, and if it has
> > NSWorkspace_RBimagefilepath and that key's value ends with /
> > Adium_*.dmg, then we are running from the disk image.
> I like this metric quite a bit. Although why the glob? We know at
> build time what the name of the DMG is going to be.
> Although, what about the case with multiple DMGs of the same name
> (user downloads it twice by accident).
> Maybe testing the presence of imagefilepath existing and RBmntonname
> being "/Volumes/Adium X 1.0.2" would be better?
I think that that makes the most sense, since the user is much more
likely to have a differently-named .dmg than he is to change the name
of the volume that gets mounted. It's just one more way to make it
user-proof with the same amount of work as the less user-proof
alternative (of checking for the mounted dmg name).
More information about the Adium-devl