I used the hack to set LSUIElement to 1 for my iCal application to hide the dock icon, as I have shortcuts to view the calendar, etc.
Now, however, the passwords for my accounts can not be saved. iCal forgets the password to all my accounts as soon as they are entered.
I suspect that the change to the application (with sudo) somehow upset the keychain.
Possibly related: Mac OSX 10.6 applications unable to store credentials in keychain