Q:

Login/startup sound file help

I am newer to Ubuntu and I am trying to slowly learn.  I have been trying to activate and change my login sound but currently I still hear nothing.  I did hear the login sound at a point and I think I messed it up when I changed  the file.  
This is what I have done.  I added a startup application with this command I pasted in, /usr/bin/canberra-gtk-play --id="desktop-login" --description="GNOME Login sound".  I then typed in gksu nautilus and went to /usr/share/sounds/ubuntu/stereo and I changed two files,  desktop-login.ogg and system-startup.ogg, at least that is what I renamed them. 
I renamed the old desktop-login.ogg to system-startup.ogg, which I thought was that files original name in the same folder just to move it out of the way and keep the sound.  I brought in a new .ogg file and renamed it desktop-login.ogg in hopes that the new file would take hold and play in the old files place upon startup/login.  I currently get no sounds. Can anyone find my error? My first thoughts are that the name I made, system-startup.ogg, was not the original name.

A:

Open Terminal and enter this command:
gedit ~/.config/autostart/loginsound.desktop
Copy and paste the text below into this new blank file:

[Desktop Entry]
Type=Application
Exec=/usr/bin/canberra-gtk-play --id="desktop-login"
Name=Login Sound
Comment=Play login sound on startup
Icon=multimedia-volume-control
Hidden=false
NoDisplay=true
X-GNOME-Autostart-enabled=true

Exit Gedit saving the modified file.
Make sure that you have a file named /usr/share/sounds/ubuntu/stereo/desktop-login.ogg and it does play your preferred login sound - you can try the command /usr/bin/canberra-gtk-play --id="desktop-login" and if you don't hear anything there might be something wrong with that file:

Does it really contain any sound?
Does it have read permissions for all? (You can check this via gksu nautilus command or the Properties context menu item.)

