This file is indexed.

/usr/share/amsn/plugins/music/infoamarok2 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#! /bin/bash
# Shell script to get informations about the current song playing in Amarok

#Amarok is launched ?
AMAROK=`ps -e | grep [a]marok`
if [ -n "$AMAROK" ]
then
	#Yes so we get the info
	#artist=`qdbus org.kde.amarok /Player GetMetadata | grep artist`
	title=`qdbus org.kde.amarok /Player GetMetadata | grep title`
	artist=`qdbus org.kde.amarok /Player GetMetadata | grep ^artist`
	path=`qdbus org.kde.amarok /Player GetMetadata | grep location | sed -e s/%20/\ /g`
	artpath=`qdbus org.kde.amarok /Player GetMetadata | grep arturl | sed -e s/%20/\ /g`
	album=`qdbus org.kde.amarok /Player GetMetadata | grep album:`
	position=`qdbus org.kde.amarok /Player PositionGet`
	if [ $position == 0 ]
	then
	  status=0
	else
	  status=1
	fi
	
	#regsub -all "%20" "what%20ever" tata blabla
	#set test [string map { "%20" "ta" } $path]
 	#bla="allo"	
	#regsub -all (jni) $path {!\1!} bla

	echo $status
	echo ${artist/"artist: "/""}
	#echo ${path/"location: "/""}
	echo ${title/"title: "/""}
	echo ${path/"location: file:"/""}
	echo ${artpath/"arturl: file:"/""}
	echo ${album/"album: "/""}
else
	#No so we set to state stopped
	echo 0
fi

exit 0