[Adium-devl] Let's abandon disk images
Peter Hosey
boredzo at gmail.com
Sat Mar 31 23:58:51 UTC 2007
On Mar 31, 2007, at 16:56:45, Graham Booker wrote:
> [[NSBundle mainBundle] bundlePath] …
> If it starts with /Volumes, …
> [[NSWorkspace sharedWorkspace] mountedRemovableMedia] …
> If our path is prefixed with one of these, then we are on another
> disk. If the disk name starts with "Adium" (or whatever we name
> our disk image) then it is extremely likely we are on our disk
> image. We can simply pass this path to "hdiutil detach" to unmount
> it after we are done.
Much better than my overthought solution. :)
___________________________________
\ Peter Hosey / boredzo at adiumx.com
PGP public key ID: C6550423 (since 2007-01-01)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070331/9c253675/attachment.sig>
More information about the devel
mailing list