Re: Is there a global environment.plist?
- From: eatmyjunk@xxxxxxxxx
- Date: 31 Mar 2007 13:17:47 -0700
On Mar 30, 2:58 pm, masse...@xxxxxxxxxxx (Neill Massello) wrote:
filipp <no-...@xxxxxxxxxxxxxxxxxx> wrote:
It looks to me like this is *meant to* work on a per-user basis.
Yes, because it's meant for GUI apps, which generally only run for
users.
This is true. But shake is a hybrid app, and its default installation
installs both the package in the /Applications directory, and installs
a little script under /usr/bin that calls the app from its installed
location (which unlike most good mac citizens can be broken easily by
moving the .app bundle) and tells it to be quiet.
But, and I'm not sure exactly the reason, even though the same actual
executable is launched in both cases, it behaves differently to
environment variables. Those set in /etc/profile work for the command
line, and therefore for any user using the command line (or
~/.bash_login is good for each user) but it ignores those set in
~/.MacOSX/environment.plist . The opposite is true when it is launched
from the bundle, only the plist is used, and all shell environment
variables seem to be ignored. I've tested many methods!
And although I understand that the environment.plist file seems to be
intended as user-specific, and its use is a last resort after
application-specific plists, it seems to be (to me at least) in the
category of items that are closer related to the /System/Library > /
Library > ~/Library hierarchy. But maybe it isn't, and was never meant
to be, but in any case this is a perfect example (from Apple, no
less!) of a need for that flexibility.
Lots of these things would also be simpler if I could simply have a
copy of OS X Server on our network. But alas, I am but a lowly visual
effects artist thrust into the role of sysadmin for a small network of
6 machines, my time and resources are limited. I don't even know if I
could figure it out if I had the tools.
So for now, I am using remote desktop's facility to run scripts
remotely, once for each user on each machine, to write to the plist.
It is working, and I only need to run it when a new user uses a new
machine. Which is only once per month or so, on average. Manageable.
Especially since I also need to do a whole lot of netinfo jiggery to
the the different volumes shared on all the machines in the right
manner, without users logging in (a whole can of worms on its own), I
already have a swiss army knife script that I have simply added this
functionality into.
Cheers,
Martin.
PS. <dead horse><flog>Of course, I still ache to know if there is a
simple equivalent.</flog></dead horse>
.
- References:
- Is there a global environment.plist?
- From: eatmyjunk
- Re: Is there a global environment.plist?
- From: Wes Groleau
- Re: Is there a global environment.plist?
- From: filipp
- Re: Is there a global environment.plist?
- From: Neill Massello
- Is there a global environment.plist?
- Prev by Date: Re: I have a vision for dynamic C++ driven websites!
- Next by Date: Wireless Network Question
- Previous by thread: Re: Is there a global environment.plist?
- Next by thread: Desktop clutter and firefox?
- Index(es):
Relevant Pages
|