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