/usr/share/amsn/plugins/music/infoamarok is in amsn-data 0.98.9-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #! /bin/sh
# Shell script to get informations about the current song playing in Amarok
#Amarok is launched ?
AMAROK=`ps -e | grep [a]marokapp`
if [ -n "$AMAROK" ]
then
#Yes so we get the info
dcop amarok player status
dcop amarok player title
dcop amarok player artist
dcop amarok player encodedURL
dcop amarok player coverImage
dcop amarok player album
else
#No so we set to state stopped
echo 0
fi
exit 0
|