This works in Karmic,jaunty and intrepid ! Tested on ULTIMATE EDITION 2.2,2.3,2.4 --(Many times!) But should work on all "Ubuntu" distro's.?
FOR LOGOUT SOUND; please read all before starting;
- If someone has a better way let us know!
STEP 1.
- Open a terminal
- Hint:You can copy and past the commands with out the ">"
> gksu gedit /etc/gdm/PostSession/Default
- Insert the following line in the space between "}" and "exit 0"
> /usr/bin/canberra-gtk-play --id="desktop-logout" --description="GNOME Logout"
- Click save box at top left of window , close window.
STEP 2.
- Open synaptic and type in search > libcanberra
There should be 4 things installed if not install them, if so re-install them
#1 libcanberraO
#2 libcanberra-gtkO
#3 libcanberra-gtk-module
#4 gnome-session-canberra
Edit: I installed everything on the page
Edit#2 If your post session is only 2 lines long, Copy and past that to your favorite text editor and save to your home folder(as a backup), Then delete the old post session, Copy and past the script below to your now empty post session, and save, Then do the synaptic,libcanberra. NOTE sound script is already inserted below.
------------------------------------------------------------------------------------------------------------------------------
#!/bin/sh
PATH="/usr/bin/X11:/usr/X11R6/bin:/opt/X11R6/bin:$PATH:/bin:/usr/bin"
OLD_IFS=$IFS
gdmwhich () {
COMMAND="$1"
OUTPUT=
IFS=:
for dir in $PATH
do
if test -x "$dir/$COMMAND" ; then
if test "x$OUTPUT" = "x" ; then
OUTPUT="$dir/$COMMAND"
fi
fi
done
IFS=$OLD_IFS
echo "$OUTPUT"
}
/usr/bin/canberra-gtk-play --id="desktop-logout" --description="GNOME Logout"
exit 0
-------------------------------------------------------------------------------------------------------------------------
- Now your logout sound should function; with the default logout.
- Close all open windows and reboot to test.It should work; It worked for me!