This file is indexed.

/usr/share/amsn/plugins/music/infolastfm 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
#!/bin/bash
# Shell script to get informations about the current song playing in Lastfm
#
# Original by pipeta_probeta
# Little changes by MurDoK

#Lastfm is launched ?
WINDOW_ID=$(xlsclients -la | grep lastfm -B 3 | head -n 1 | awk '{print $2}' | awk -F":" '{print $1}')
if [ -n "$WINDOW_ID" ] 
then
	#Yes so we get the info
	ARTIST=$(xwininfo -id $WINDOW_ID | grep xwininfo | awk -F"\"" '{print $2}' | awk -F"  " '{print $1}')
	SONG=$(xwininfo -id $WINDOW_ID | grep xwininfo | awk -F"\"" '{print $2}' | awk -F"  " '{print $2}')
	echo 1
	echo $ARTIST 
	echo $SONG
else
	#No so we set to state stopped
	echo 0
fi

exit 0