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
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-configura tion-tool- ubuntu. html