launchd.plist problem
This was originally posted under OS 10.5 - Installation and Setup and it was suggested that I re-post it here. Thank you for your time!
I have a plist setup with 'WatchPaths' set to ~/Library/Preferences. When it runs, the message "~/Library/Preferences" cannot be found. If I put the WatchPaths to (for example) "/Users/administrator/Library/Preferences" then everything works fine.
How can I get the plist to recoginize the '~' for currently logged on user? Or is there another way to designate the logged on user's directory w/o spelling it out for each users?
I've tried setting 'WorkingDirectory' to $HOME but that generates the following: "Bug: launchd corelogic.c:3119 (23923):2: chdir(j->workingdir) != -1"
Also tried using the 'EnvironmentVariables' key but couldn't come up w/a way that that would work either?
The goal here is to monitor the screensaver settings and set the idleTime to a certain value, even if the user changes it. I can use WGM to lock the askForPassword value but there doesn't seem to be anyway to lock the idleTime (which would solve the whole problem).
Suggestions???? Please...
All, Mac OS X (10.4.11)