Comment 79 for bug 437429

Why reinventing the wheel? There is a configuration tool that offers the possibility to disable Loginsounds:

http://ubuntuforums.org/showthread.php?t=1358026

http://www.webupd8.org/2009/12/gdm-2-gui-configuration-tool-ubuntu.html