Sunday, January 9, 2011

how to disable login sound on ubuntu 10.10

To disable login sound:

Code:
echo -e '\n[Desktop Entry]\nType=Application\nName=GNOME Login Sound\nComment=Plays a sound whenever you log in\nExec=/usr/bin/canberra-gtk-play --id="desktop-login" --description="GNOME Login"\nOnlyShowIn=GNOME;\nAutostartCondition=GNOME /desktop/gnome/sound/event_sounds\nX-GNOME-Autostart-Phase=Application\nX-GNOME-Provides=login-sound\nX-GNOME-Autostart-enabled=false' > ~/.config/autostart/libcanberra-login-sound.desktop
To renable:
Code:
rm ~/.config/autostart/libcanberra-login-sound.desktop

1 comment:

Sylvain said...

??
Why not just uncheck "Gnome Login Sound" in System->Preferences->Startup Applications ?