Re: Is there a global environment.plist?



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>

.



Relevant Pages

  • Communications link failure
    ... The app uses a Data Environment to connect to a SQL server through an ODBC ... differences/new installs on the machines that don't work. ...
    (microsoft.public.vb.general.discussion)
  • Re: Communications link failure
    ... we installed our app on several of their machines ... > issue with ODBC or the connection to the server. ... > differences/new installs on the machines that don't work. ...
    (microsoft.public.vb.general.discussion)
  • Re: Wrong Product Key (COA)
    ... results will tell you the keys you need to reinstall your product. ... each of your machines using a program like Acronis True Image. ... be able to activate pc2 over the net, ... so fresh installs are common around here. ...
    (microsoft.public.windowsxp.general)
  • Re: Request for suggestions re: architecture of IntraNet/Socket app[s]
    ... I am commissioned with determining the "right" architecture for an application for controlling movement of stock in a warehouse. ... Much of your system describes monitoring -- control implies schedule and tracking for purposes of changing system operation -- correct? ... If multiple machines can handle the pieces and some machines do different operations -- then there is an element of scheduling and a time frame in which to complete. ... separate RealTime system either from the IntraNet server app OR from another ...
    (borland.public.delphi.non-technical)
  • Re: Treo 700w
    ... I installed only 1 App. ... > It installs, but will not run. ... > When you are filling in data, and you are filling a field that only ... the phone's keypad does not switch to numeric. ...
    (alt.cellular.verizon)