Re: postinstall scripts not executing
Re: postinstall scripts not executing
- Subject: Re: postinstall scripts not executing
- From: "Gignac, Jason (HAS-SAT)" <email@hidden>
- Date: Mon, 18 Aug 2008 08:31:16 -0500
- Thread-topic: postinstall scripts not executing
Forgive me for being unclear - The problem, I think, that we're running
into, is that you have two types of people building packages, here:
Developers and Admins. As an Admin myself (I'm not smart enough to be a
developer! ;) ), I'm building packages tailored to my specific environment.
This means I have the disadvantage of havign no control over the source
materials I have to deal with (which leaves me doing things like hacking in
preference files to register the product because the developer didn't design
for Enterprise deployment, for instance), but with an extremely controlled
evironment to roll out my packages to. A developer, essentially, has the
opposite set of constraints. Maybe that's the root of this disagreement. I
wouldn't 'ship' any of my packages, because they are usually not even my
software. And when possible, I CERTAINLY prefer to do things the 'right'
way, because it will invariably happen that something in my environment will
change later on. But, sometimes, I have to do things the wrong way to get
them done. Curse of the Admin.
On 8/18/08 Monday, August 18, 2008 -7:09 AM, "Scott Russell"
<email@hidden> wrote:
> The advantage to a kludge like this is that it is not a system-wide
> loginhook so sysadmins shouldn't complain. However, I think we all
> know the BEST answer is to write the application correctly to set
> prefs on first launch from an internal mechanism.
>
> This specific question aside -- in the grander scheme of things, as we
> go forward, shouldn't we be dropping the idea of loginhooks in favor
> of LaunchAgents?
>
> Best wishes,
> Scott
> --
> Dr. Scott Russell
>
> IT Support Engineer/Consultant
> Arts & Letters Computing, Distributed Support Services,
> Office of Information Technologies, University of Notre Dame
> Instructor of Horn, University of Notre Dame and Saint Mary's College
> Assistant Horn, South Bend Symphony Orchestra
>
> 234 Decio Hall
> 574-631-7021
> email@hidden
> http://www.nd.edu/~srussel2/
>
>
>
>
> On Aug 17, 2008, at 5:51 PM, Stéphane Sudre wrote:
>
>>
>> On Aug 17, 2008, at 7:08 PM, Scott Russell wrote:
>>
>>>
>>> Instead of login hooks, isn't the correct mechanism going forward a
>>> launchd item in /Library/LaunchAgents/ anyway? User-specific, runs
>>> at login ... sounds like a login hook to me. *shrug*
>>
>> Can the answer be no?
>>
>> LaunchAgents are only working on 10.5 and later (in 10.4 they are
>> not working correctly at all).
>>
>> Additionally:
>>
>> - LaunchAgents are for repetitive tasks. Setting default preferences
>> is a one-shot operation.
>>
>> - There is no guarantee that a LaunchAgent item will be launched
>> before your app. LoginItems can be launched before a LaunchAgent
>> item. They can already be launched before a LaunchDaemon item.
>>
>>
>>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Installer-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
m
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden