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 -- No GUI to configure/disable login sound https://bugs.launchpad.net/bugs/437429 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs