/usr/share/amsn/plugins/music/infojuk2 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 21 22 23 | #! /bin/bash
# Shell script to get informations about the current song playing in Juk
#Juk is launched ?
JUK=`ps -e | grep juk | grep -v info`
if [ -n "$JUK" ]
then
#Yes so we get the info
status=`qdbus org.kde.juk /Player status`
echo $status
if [ $status != "0" ]
then
full=`qdbus org.kde.juk /Player playingString`
mark=`expr index "$full" -`
echo ${full:0:(mark-1)}
echo ${full:(mark+1)}
fi
else
#No so we set to state stopped
echo 0
fi
exit 0
|