Found a workaround:
Create a folder /home/yourusername/Sounds
Put your sound file in there: say trash.mp3
Install some command line sound player, mpg123 or mplayer:
Create a folder /home/yourusername/Scripts
Save the following code as something like trash.sh and put it in above folder:
Code: Select all
TOT1="$(ls -1 | wc -l)"
TOT2="$(ls -1 | wc -l)"
if [ "$TOT1" -gt "$TOT2" ];
Make sure to change the permissions of trash.sh to make it executable by right clicking on it, clicking Properties, then under Permissions, checking the Execute boxes.
Then go to Menu, Startup Applications
Click the Plus sign and choose "Custom Command"
For name, type something like "Empty Trash Sound Event"
Click Browse, select your script in /home/yourusername/Scripts/trash.sh
For comment, type something like "Plays sound effect when Trash is emptied"
Click Add, and restart Mint.