|
|
Running Python script at startup
|
|
|
|
Mac Enthusiast
Join Date: Jan 1999
Location: Marietta, GA, USA
Status:
Offline
|
|
I tried this:
sudo defaults write /Library/Preferences/com.apple.loginwindow LoginHook /Users/Shared/libgmail-0.0.8/demos/gmailpopd.py
But it freezes on a blank blue screen at startup (before the login window appears). I'm thinking it's not returning control to the loginwindow maybe. Any ideas?
Thanks,
-Scott
|
Scott Genevish
scott AT genevish DOT org
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status:
Offline
|
|
Originally posted by genevish:
I tried this:
sudo defaults write /Library/Preferences/com.apple.loginwindow LoginHook /Users/Shared/libgmail-0.0.8/demos/gmailpopd.py
But it freezes on a blank blue screen at startup (before the login window appears). I'm thinking it's not returning control to the loginwindow maybe. Any ideas?
Thanks,
-Scott
If it's a daemon, make a StartupItem in /Library/StartupItems and start it from there. I'm not familiar with LoginHook, but I assume you want this running when the machine starts up and not when you log into it. If this is the case, a StartupItem is the way to go. If you want to launch it on login, you probably just want to wrap the shell command in an AppleScript and then make the script a "Startup Item" in the System Preferences, which is a user-level event.
|
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|