Skip to content

Instantly share code, notes, and snippets.

@cheeseplus
Created April 25, 2015 00:08
Show Gist options
  • Save cheeseplus/6094e979b96cd9a6e24f to your computer and use it in GitHub Desktop.
Save cheeseplus/6094e979b96cd9a6e24f to your computer and use it in GitHub Desktop.
#!/bin/bash
# Fix from HipChat Forums Anonymous User
# https://help.hipchat.com/forums/138883-suggestions-ideas/suggestions/5830763-ubuntu-notifications-sounds-not-working
# THis should be run as root or via sudo
# locate libcanberra-pulse.so
pulse_lib=$(locate libcanberra-pulse.so)
# find dirname
canberra_dir=$(dirname ${pulse_lib})
# Then make the directory structure that hipchat expects:
mkdir -p /usr/lib/x86_64-linux-gnu/libcanberra-0.28/
# Then make symlinks for every file you find in the real libcanberra path.
cd /usr/lib/x86_64-linux-gnu/libcanberra-0.28/
# Find all the files (libs) in actual canberra location and create a symlink for each
find ${canberra_dir} -type f -exec basename {} \; | xargs -I '{}' ln -s ${canberra_dir}/'{}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment