Advertisement
Guest User

notification_sound_fix.sh

a guest
Jan 8th, 2017
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.43 KB | None | 0 0
  1. #!/bin/bash
  2. # A script to make notification sounds play on top of audio playback on Sailfish OS devices.
  3. # Tested on version 2.0.5 (Haapajoki)
  4.  
  5. FILE=$1
  6. ME=$(basename "$0")
  7. if (( $# != 1 ))
  8. then
  9.     echo "Usage: $ME <path_to_file>
  10.       No file path specified, aborting."
  11.     exit 1
  12. fi
  13.  
  14. sed -i.bak -r '/(sound.stream.media.role = notification|sound.stream.droid.device.additional-route = AUDIO_DEVICE_OUT_SPEAKER)/s/^/#/' $FILE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement