[Adium-devl] SystemVersionCheck
Graham Booker
adium at cod3r.com
Wed Aug 16 15:33:34 UTC 2006
This uses the same technique (execve) that we are currently using
within adium. Looks like it will have the exact same problems as we
currently have.
I think Andreas had an interesting idea making the app into a
bundle. I expect this is a check the system version, and if it is
fine, load the bundle and start execution. I don't know if this will
mesh too well with NSApplicationMain, but it could work.
I just think that at this point, it is far easier to make the system
version check be a skeleton application and copy the real adium.app
within it. It will have to copy some files from adium.app like the
Info.plist and application icon though. That way it runs is version
check, and if it passes, then it simply launches the real adium.app
contained within through the OS X launch mechanism (maybe
LSOpenFromRefSpec?).
Ideas, or is this concept just more work than it is worth?
On Aug 16, 2006, at 10:13 AM, Joshua Lock wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> On 16 Aug 2006, at 15:54, Peter Hosey wrote:
>> On Aug 16, 2006, at 06:35:22, Graham Booker wrote:
>>> I almost wonder if it would be better to change the
>>> systemVersionCheck to use OS X's application launch mechanism
>>> rather than fork. Put the whole app in a sub-dir within adium and
>>> have the system version check launch the app within itself.
>>
>> I second the motion.
>
> I don't know how the current version check works but is this any use?
>
> http://weblog.bignerdranch.com/?p=13
>
> From the page :
>
> "I describe a better solution, using a boot-strapping executable to
> check the OS version, and only load the real application if the
> minimum OS version is satisfied. If not, an informative alert is
> presented to the user. It works with Universal Binaries, Carbon and
> Cocoa, and all the way back to Mac OS X 10.0, and it doesn’t depend
> on the buggy LSMinimumSystemVersion feature from Apple."
>
> The sample code is BSD license ...
>
> - -J
> - --
> Joshua Lock
> incandescant at googlemail.com
>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (Darwin)
>
> iD8DBQFE4zYpYDFdGYo657IRAtrWAJ0T8gmWghUuFd92HonRY+pLSEHvWgCdFIqR
> KZ13DtpvIMI6cdSrAPgg5jc=
> =VjSd
> -----END PGP SIGNATURE-----
More information about the devel
mailing list