10 Jan
2008
10 Jan
'08
3:13 a.m.
On Jan 9, 2008, at 16:33, Peter Dyballa wrote:
Am 09.01.2008 um 23:22 schrieb Jeremy Huddleston:
That's what I want to do (see previous posts from me when your digest comes for more detail), but launchd.plist doesn't have an easy way to get <user>.
Why does it need to have or provide it? Doesn't the environment in which launchd works supply $USER? Wouldn't 'id -un' give the right value at run-time?
It does supply $USER in the environment, but it can't be set on the command line when launched from launch (hence the sh -c '... $USER ...' attempt).
A little helper script could record with defaults the key/value pair near login-time ...
I'm not sure what you mean by this.