tbarry1a
Sat Jun 30, 2012 2:38:54 pm
Anyone know how to play a sound when logging out of Zorin 6? I tried creating tjis simple script in my ~/bin directory:
#!/bin/bash
## play logout sound
/usr/bin/canberra-gtk-play --id="desktop-logout"
Then I added the following to the .bash_logout
# ~/.bash_logout: executed by bash(1) when login shell exits.
# when leaving the console clear the screen to increase privacy
if [ "$SHLVL" = 1 ]; then
[ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
fi
# Play Logout Sound
[ -x /home/tom/bin/zorinlogout ]
But the logout sound doesn't seem to play. Maybe I am putting it in the wrong place. It seems to play when I enter the command from the terminal. Any suggestions??
#!/bin/bash
## play logout sound
/usr/bin/canberra-gtk-play --id="desktop-logout"
Then I added the following to the .bash_logout
# ~/.bash_logout: executed by bash(1) when login shell exits.
# when leaving the console clear the screen to increase privacy
if [ "$SHLVL" = 1 ]; then
[ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
fi
# Play Logout Sound
[ -x /home/tom/bin/zorinlogout ]
But the logout sound doesn't seem to play. Maybe I am putting it in the wrong place. It seems to play when I enter the command from the terminal. Any suggestions??