|
|
Display a random fortune in the login window
I'm having a hard time with this hint. it _seems_ simple enough, but alas i'm frustrated.
I can get the fortune to update manualy by running the loginfortune.sh script, but i can't get it update with LoginHook or LogoutHook
here is what i've done. I'm setting this up under my administrator account. I created the "loginfortune.sh" script as such:
I placed it in /Library/Hooks folder, did a +x chmod on it.
Then wrote to LoginHook with
I've checked that all is well with the com.apple.loginwindow.plist by opening it with the Property List Editor. sure enough the fortune string is listed and the LoginHook is set to a string value of "/Library/Hooks/loginfortune.sh"
so everything looks ok. but it dosen't work. everytime i login i get the same fortune. I think it's a permissions thing because every time i login and try to examin the com.apple.loginwindow.plist i notice that the permissions get set to Owner:system w/ Read&Write Group:Admin w/ Read Only and Others w/ Read Only
If i manually run my loginfortune.sh script the Owner switches to my login name w/Read&Write and the fortune gets updated.
how can i fix this so it works?
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|