View Single Post
Guest | Posts: n/a | Thanked: 0 times | Joined on
#79
Had to slightly alter the script, but it works, thanks

Code:
dbus-monitor --system "type=signal, interface=com.nokia.policy" |  
while read -r line; 
do
	if echo $line | grep "string \"headphone\""; then
		/usr/bin/jolla-mediaplayer
	fi
done
 

The Following 4 Users Say Thank You to For This Useful Post: