http://blog.blackdown.de/2007/05/19/lastfm-for-rhythmbox-new-style

v3o: * Update for rhythmbox 0.12.8git20100611
v3n: * Update for rhythmbox 0.12.8git20100602
v3m: * Update for rhythmbox 0.12.8
v3l: * Update for rhythmbox 0.12.6
v3k: * Update for rhythmbox 0.12.5
v3j: * Update for rhythmbox 0.12.0
v3i: * Update for real 0.11.6 (v3h was for a later version from SVN)
v3h: * Update for rhythmbox 0.11.6
v3g: * Update for rhythmbox 0.11.5
v3f: * Update for rhythmbox 0.11.4
v3e: * Update for rhythmbox 0.11.3
v3d: * Update for rhythmbox 0.11.2
v3c: * Update for rhythmbox 0.11.1
v3b: * Update for rhythmbox 0.11.0
v3a: * Update for Ubuntu rhythmbox 0.10.90
v3:  * Start client in system tray
     * Try last.fm (beta client) before lastm
     * Reduce bogus RESUME/PAUSE commands
     * Misc small bug fixes
v2:  * Autostart lastfm
     * Bugfixes
     * Ignore tracks shorter than 30s
v1:  * Basic functionality, no autostart of lastfm yet

diff -urNp rhythmbox-0.12.8git20100611.orig/configure rhythmbox-0.12.8git20100611/configure
--- rhythmbox-0.12.8git20100611.orig/configure	2010-06-11 11:05:02.000000000 +0200
+++ rhythmbox-0.12.8git20100611/configure	2010-06-13 03:02:38.000000000 +0200
@@ -19193,7 +19193,7 @@ fi
 
 
 
-ac_config_files="$ac_config_files rhythmbox.pc Makefile macros/Makefile lib/Makefile lib/libmediaplayerid/Makefile metadata/Makefile rhythmdb/Makefile widgets/Makefile podcast/Makefile shell/Makefile data/Makefile data/rhythmbox.desktop.in data/ui/Makefile data/icons/Makefile data/icons/hicolor/Makefile data/icons/hicolor/16x16/Makefile data/icons/hicolor/16x16/actions/Makefile data/icons/hicolor/16x16/apps/Makefile data/icons/hicolor/16x16/places/Makefile data/icons/hicolor/16x16/status/Makefile data/icons/hicolor/22x22/Makefile data/icons/hicolor/22x22/actions/Makefile data/icons/hicolor/22x22/apps/Makefile data/icons/hicolor/22x22/places/Makefile data/icons/hicolor/22x22/status/Makefile data/icons/hicolor/24x24/Makefile data/icons/hicolor/24x24/apps/Makefile data/icons/hicolor/24x24/places/Makefile data/icons/hicolor/32x32/Makefile data/icons/hicolor/32x32/actions/Makefile data/icons/hicolor/32x32/apps/Makefile data/icons/hicolor/32x32/places/Makefile data/icons/hicolor/32x32/status/Makefile data/icons/hicolor/48x48/Makefile data/icons/hicolor/48x48/apps/Makefile data/icons/hicolor/256x256/Makefile data/icons/hicolor/256x256/apps/Makefile data/icons/hicolor/scalable/Makefile data/icons/hicolor/scalable/actions/Makefile data/icons/hicolor/scalable/apps/Makefile data/icons/hicolor/scalable/places/Makefile data/icons/hicolor/scalable/status/Makefile data/icons/src/Makefile sources/Makefile sources/sync/Makefile plugins/Makefile plugins/sample/Makefile plugins/audiocd/Makefile plugins/coherence/Makefile plugins/coherence/upnp_coherence/Makefile plugins/audioscrobbler/Makefile plugins/cd-recorder/Makefile plugins/brasero-disc-recorder/Makefile plugins/daap/Makefile plugins/fmradio/Makefile plugins/im-status/Makefile plugins/ipod/Makefile plugins/mtpdevice/Makefile plugins/iradio/Makefile plugins/lirc/Makefile plugins/lyrics/Makefile plugins/lyrics/lyrics/Makefile plugins/sample-python/Makefile plugins/sample-vala/Makefile plugins/pythonconsole/Makefile plugins/artdisplay/Makefile plugins/artdisplay/artdisplay/Makefile plugins/magnatune/Makefile plugins/magnatune/magnatune/Makefile plugins/jamendo/Makefile plugins/jamendo/jamendo/Makefile plugins/generic-player/Makefile plugins/rb/Makefile plugins/power-manager/Makefile plugins/status-icon/Makefile plugins/visualizer/Makefile plugins/mmkeys/Makefile plugins/context/Makefile plugins/context/context/Makefile plugins/sendto/Makefile plugins/replaygain/Makefile plugins/replaygain/replaygain/Makefile plugins/mpris/Makefile bindings/Makefile bindings/python/Makefile bindings/vala/Makefile help/Makefile po/Makefile.in tests/Makefile doc/Makefile doc/reference/Makefile backends/Makefile backends/gstreamer/Makefile remote/Makefile remote/dbus/Makefile"
+ac_config_files="$ac_config_files rhythmbox.pc Makefile macros/Makefile lib/Makefile lib/libmediaplayerid/Makefile metadata/Makefile rhythmdb/Makefile widgets/Makefile podcast/Makefile shell/Makefile data/Makefile data/rhythmbox.desktop.in data/ui/Makefile data/icons/Makefile data/icons/hicolor/Makefile data/icons/hicolor/16x16/Makefile data/icons/hicolor/16x16/actions/Makefile data/icons/hicolor/16x16/apps/Makefile data/icons/hicolor/16x16/places/Makefile data/icons/hicolor/16x16/status/Makefile data/icons/hicolor/22x22/Makefile data/icons/hicolor/22x22/actions/Makefile data/icons/hicolor/22x22/apps/Makefile data/icons/hicolor/22x22/places/Makefile data/icons/hicolor/22x22/status/Makefile data/icons/hicolor/24x24/Makefile data/icons/hicolor/24x24/apps/Makefile data/icons/hicolor/24x24/places/Makefile data/icons/hicolor/32x32/Makefile data/icons/hicolor/32x32/actions/Makefile data/icons/hicolor/32x32/apps/Makefile data/icons/hicolor/32x32/places/Makefile data/icons/hicolor/32x32/status/Makefile data/icons/hicolor/48x48/Makefile data/icons/hicolor/48x48/apps/Makefile data/icons/hicolor/256x256/Makefile data/icons/hicolor/256x256/apps/Makefile data/icons/hicolor/scalable/Makefile data/icons/hicolor/scalable/actions/Makefile data/icons/hicolor/scalable/apps/Makefile data/icons/hicolor/scalable/places/Makefile data/icons/hicolor/scalable/status/Makefile data/icons/src/Makefile sources/Makefile sources/sync/Makefile plugins/Makefile plugins/sample/Makefile plugins/audiocd/Makefile plugins/coherence/Makefile plugins/coherence/upnp_coherence/Makefile plugins/audioscrobbler/Makefile plugins/scrobbler/Makefile plugins/cd-recorder/Makefile plugins/brasero-disc-recorder/Makefile plugins/daap/Makefile plugins/fmradio/Makefile plugins/im-status/Makefile plugins/ipod/Makefile plugins/mtpdevice/Makefile plugins/iradio/Makefile plugins/lirc/Makefile plugins/lyrics/Makefile plugins/lyrics/lyrics/Makefile plugins/sample-python/Makefile plugins/sample-vala/Makefile plugins/pythonconsole/Makefile plugins/artdisplay/Makefile plugins/artdisplay/artdisplay/Makefile plugins/magnatune/Makefile plugins/magnatune/magnatune/Makefile plugins/jamendo/Makefile plugins/jamendo/jamendo/Makefile plugins/generic-player/Makefile plugins/rb/Makefile plugins/power-manager/Makefile plugins/status-icon/Makefile plugins/visualizer/Makefile plugins/mmkeys/Makefile plugins/context/Makefile plugins/context/context/Makefile plugins/sendto/Makefile plugins/replaygain/Makefile plugins/replaygain/replaygain/Makefile plugins/mpris/Makefile bindings/Makefile bindings/python/Makefile bindings/vala/Makefile help/Makefile po/Makefile.in tests/Makefile doc/Makefile doc/reference/Makefile backends/Makefile backends/gstreamer/Makefile remote/Makefile remote/dbus/Makefile"
 
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
@@ -20354,6 +20354,7 @@ do
     "plugins/coherence/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/coherence/Makefile" ;;
     "plugins/coherence/upnp_coherence/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/coherence/upnp_coherence/Makefile" ;;
     "plugins/audioscrobbler/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/audioscrobbler/Makefile" ;;
+    "plugins/scrobbler/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/scrobbler/Makefile" ;;
     "plugins/cd-recorder/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/cd-recorder/Makefile" ;;
     "plugins/brasero-disc-recorder/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/brasero-disc-recorder/Makefile" ;;
     "plugins/daap/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/daap/Makefile" ;;
diff -urNp rhythmbox-0.12.8git20100611.orig/configure.ac rhythmbox-0.12.8git20100611/configure.ac
--- rhythmbox-0.12.8git20100611.orig/configure.ac	2010-06-11 11:03:11.000000000 +0200
+++ rhythmbox-0.12.8git20100611/configure.ac	2010-06-13 03:03:07.000000000 +0200
@@ -862,6 +862,7 @@ plugins/audiocd/Makefile
 plugins/coherence/Makefile
 plugins/coherence/upnp_coherence/Makefile
 plugins/audioscrobbler/Makefile
+plugins/scrobbler/Makefile
 plugins/cd-recorder/Makefile
 plugins/brasero-disc-recorder/Makefile
 plugins/daap/Makefile
diff -urNp rhythmbox-0.12.8git20100611.orig/plugins/Makefile.am rhythmbox-0.12.8git20100611/plugins/Makefile.am
--- rhythmbox-0.12.8git20100611.orig/plugins/Makefile.am	2010-06-11 11:03:11.000000000 +0200
+++ rhythmbox-0.12.8git20100611/plugins/Makefile.am	2010-06-13 03:03:07.000000000 +0200
@@ -1,6 +1,7 @@
 SUBDIRS = 						\
 	audiocd						\
 	audioscrobbler					\
+	scrobbler					\
 	generic-player					\
 	iradio						\
 	mmkeys						\
diff -urNp rhythmbox-0.12.8git20100611.orig/plugins/Makefile.in rhythmbox-0.12.8git20100611/plugins/Makefile.in
--- rhythmbox-0.12.8git20100611.orig/plugins/Makefile.in	2010-06-11 11:04:57.000000000 +0200
+++ rhythmbox-0.12.8git20100611/plugins/Makefile.in	2010-06-13 03:03:07.000000000 +0200
@@ -97,7 +97,7 @@ AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGE
 	distdir
 ETAGS = etags
 CTAGS = ctags
-DIST_SUBDIRS = audiocd audioscrobbler generic-player iradio mmkeys \
+DIST_SUBDIRS = audiocd audioscrobbler scrobbler generic-player iradio mmkeys \
 	power-manager sample status-icon visualizer lirc pythonconsole \
 	sample-python artdisplay lyrics magnatune jamendo coherence \
 	im-status context sendto replaygain rb sample-vala ipod \
@@ -361,7 +361,7 @@ target_alias = @target_alias@
 top_build_prefix = @top_build_prefix@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
-SUBDIRS = audiocd audioscrobbler generic-player iradio mmkeys \
+SUBDIRS = audiocd audioscrobbler scrobbler generic-player iradio mmkeys \
 	power-manager sample status-icon visualizer $(am__append_1) \
 	$(am__append_2) $(am__append_3) $(am__append_4) \
 	$(am__append_5) $(am__append_6) $(am__append_7) \
diff -urNp rhythmbox-0.12.8git20100611.orig/plugins/scrobbler/Makefile.am rhythmbox-0.12.8git20100611/plugins/scrobbler/Makefile.am
--- rhythmbox-0.12.8git20100611.orig/plugins/scrobbler/Makefile.am	1970-01-01 01:00:00.000000000 +0100
+++ rhythmbox-0.12.8git20100611/plugins/scrobbler/Makefile.am	2010-06-13 03:03:07.000000000 +0200
@@ -0,0 +1,44 @@
+plugindir = $(PLUGINDIR)/scrobbler
+plugin_LTLIBRARIES = libscrobbler.la
+
+libscrobbler_la_SOURCES = \
+	rb-scrobbler-plugin.c
+
+libscrobbler_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
+libscrobbler_la_LIBTOOLFLAGS = --tag=disable-static
+libscrobbler_la_LIBADD =                                \
+        $(top_builddir)/shell/librhythmbox-core.la      \
+        $(RHYTHMBOX_LIBS)
+
+
+INCLUDES = 						\
+        -DGNOMELOCALEDIR=\""$(datadir)/locale"\"        \
+	-DG_LOG_DOMAIN=\"Rhythmbox\"		 	\
+	-I$(top_srcdir) 				\
+	-I$(top_srcdir)/lib                        	\
+	-I$(top_srcdir)/metadata                       	\
+	-I$(top_srcdir)/player                       	\
+	-I$(top_srcdir)/rhythmdb                       	\
+	-I$(top_srcdir)/widgets                    	\
+	-I$(top_srcdir)/sources                    	\
+	-I$(top_srcdir)/iradio                    	\
+	-I$(top_srcdir)/podcast                    	\
+	-I$(top_srcdir)/plugins				\
+	-I$(top_srcdir)/shell				\
+	-DPIXMAP_DIR=\""$(datadir)/pixmaps"\"		\
+	-DSHARE_DIR=\"$(pkgdatadir)\"                   \
+	-DDATADIR=\""$(datadir)"\"			\
+	$(RHYTHMBOX_CFLAGS)				\
+	$(WARN_CFLAGS)					\
+	-D_XOPEN_SOURCE -D_BSD_SOURCE
+
+plugin_in_files = scrobbler.rb-plugin.desktop.in
+
+%.rb-plugin: %.rb-plugin.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
+
+plugin_DATA = $(plugin_in_files:.rb-plugin.desktop.in=.rb-plugin)
+
+EXTRA_DIST = $(plugin_in_files)
+
+CLEANFILES = $(plugin_DATA)
+DISTCLEANFILES = $(plugin_DATA)
diff -urNp rhythmbox-0.12.8git20100611.orig/plugins/scrobbler/Makefile.in rhythmbox-0.12.8git20100611/plugins/scrobbler/Makefile.in
--- rhythmbox-0.12.8git20100611.orig/plugins/scrobbler/Makefile.in	1970-01-01 01:00:00.000000000 +0100
+++ rhythmbox-0.12.8git20100611/plugins/scrobbler/Makefile.in	2010-06-13 03:03:07.000000000 +0200
@@ -0,0 +1,738 @@
+# Makefile.in generated by automake 1.11.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009  Free Software Foundation,
+# Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = plugins/scrobbler
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/macros/gnome-doc-utils.m4 \
+	$(top_srcdir)/macros/gtk-doc.m4 \
+	$(top_srcdir)/macros/intltool.m4 \
+	$(top_srcdir)/macros/libtool.m4 \
+	$(top_srcdir)/macros/ltoptions.m4 \
+	$(top_srcdir)/macros/ltsugar.m4 \
+	$(top_srcdir)/macros/ltversion.m4 \
+	$(top_srcdir)/macros/lt~obsolete.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+    *) f=$$p;; \
+  esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+  srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+  for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+  for p in $$list; do echo "$$p $$p"; done | \
+  sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+  $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+    if (++n[$$2] == $(am__install_max)) \
+      { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+    END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+  sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+  sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__installdirs = "$(DESTDIR)$(plugindir)" "$(DESTDIR)$(plugindir)"
+LTLIBRARIES = $(plugin_LTLIBRARIES)
+am__DEPENDENCIES_1 =
+libscrobbler_la_DEPENDENCIES =  \
+	$(top_builddir)/shell/librhythmbox-core.la \
+	$(am__DEPENDENCIES_1)
+am_libscrobbler_la_OBJECTS = libscrobbler_la-rb-scrobbler-plugin.lo
+libscrobbler_la_OBJECTS = $(am_libscrobbler_la_OBJECTS)
+AM_V_lt = $(am__v_lt_$(V))
+am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
+am__v_lt_0 = --silent
+libscrobbler_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
+	$(libscrobbler_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \
+	$(CCLD) $(AM_CFLAGS) $(CFLAGS) $(libscrobbler_la_LDFLAGS) \
+	$(LDFLAGS) -o $@
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+am__mv = mv -f
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+	$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
+	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+	$(AM_CFLAGS) $(CFLAGS)
+AM_V_CC = $(am__v_CC_$(V))
+am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
+am__v_CC_0 = @echo "  CC    " $@;
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+CCLD = $(CC)
+LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+	$(AM_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_CCLD = $(am__v_CCLD_$(V))
+am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
+am__v_CCLD_0 = @echo "  CCLD  " $@;
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo "  GEN   " $@;
+SOURCES = $(libscrobbler_la_SOURCES)
+DIST_SOURCES = $(libscrobbler_la_SOURCES)
+DATA = $(plugin_DATA)
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@
+ALL_LINGUAS = @ALL_LINGUAS@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+APP_INDICATOR_CFLAGS = @APP_INDICATOR_CFLAGS@
+APP_INDICATOR_LIBS = @APP_INDICATOR_LIBS@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AVAHI_CFLAGS = @AVAHI_CFLAGS@
+AVAHI_LIBS = @AVAHI_LIBS@
+AWK = @AWK@
+CATALOGS = @CATALOGS@
+CATOBJEXT = @CATOBJEXT@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CHECK_CFLAGS = @CHECK_CFLAGS@
+CHECK_LIBS = @CHECK_LIBS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DATADIRNAME = @DATADIRNAME@
+DBUS_CFLAGS = @DBUS_CFLAGS@
+DBUS_GLIB_BIN = @DBUS_GLIB_BIN@
+DBUS_LIBS = @DBUS_LIBS@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DISABLE_DEPRECATED = @DISABLE_DEPRECATED@
+DISTCHECK_CONFIGURE_FLAGS = @DISTCHECK_CONFIGURE_FLAGS@
+DMAPSHARING_CFLAGS = @DMAPSHARING_CFLAGS@
+DMAPSHARING_LIBS = @DMAPSHARING_LIBS@
+DOC_USER_FORMATS = @DOC_USER_FORMATS@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GCONFTOOL = @GCONFTOOL@
+GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@
+GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@
+GDK_PIXBUF_CSOURCE = @GDK_PIXBUF_CSOURCE@
+GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
+GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
+GMOFILES = @GMOFILES@
+GMSGFMT = @GMSGFMT@
+GNOME_KEYRING_CFLAGS = @GNOME_KEYRING_CFLAGS@
+GNOME_KEYRING_LIBS = @GNOME_KEYRING_LIBS@
+GREP = @GREP@
+GSTCDDA_CFLAGS = @GSTCDDA_CFLAGS@
+GSTCDDA_LIBS = @GSTCDDA_LIBS@
+GSTREAMER_0_10_CFLAGS = @GSTREAMER_0_10_CFLAGS@
+GSTREAMER_0_10_LIBS = @GSTREAMER_0_10_LIBS@
+GST_PYTHON_DEFSDIR = @GST_PYTHON_DEFSDIR@
+GTKDOC_CHECK = @GTKDOC_CHECK@
+GTKDOC_MKPDF = @GTKDOC_MKPDF@
+GTKDOC_REBASE = @GTKDOC_REBASE@
+GUDEV_CFLAGS = @GUDEV_CFLAGS@
+GUDEV_LIBS = @GUDEV_LIBS@
+HAL_CFLAGS = @HAL_CFLAGS@
+HAL_LIBS = @HAL_LIBS@
+HAVE_LIBBRASERO_MEDIA = @HAVE_LIBBRASERO_MEDIA@
+HAVE_NAUTILUS_BURN = @HAVE_NAUTILUS_BURN@
+HELP_DIR = @HELP_DIR@
+HTML_DIR = @HTML_DIR@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INSTOBJEXT = @INSTOBJEXT@
+INTLLIBS = @INTLLIBS@
+INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
+INTLTOOL_MERGE = @INTLTOOL_MERGE@
+INTLTOOL_PERL = @INTLTOOL_PERL@
+INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
+IPOD_CFLAGS = @IPOD_CFLAGS@
+IPOD_LIBS = @IPOD_LIBS@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBBRASERO_MEDIA_CFLAGS = @LIBBRASERO_MEDIA_CFLAGS@
+LIBBRASERO_MEDIA_LIBS = @LIBBRASERO_MEDIA_LIBS@
+LIBNAUTILUS_BURN_CFLAGS = @LIBNAUTILUS_BURN_CFLAGS@
+LIBNAUTILUS_BURN_LIBS = @LIBNAUTILUS_BURN_LIBS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MOZILLA_PLUGINDIR = @MOZILLA_PLUGINDIR@
+MSGFMT = @MSGFMT@
+MSGFMT_OPTS = @MSGFMT_OPTS@
+MSGMERGE = @MSGMERGE@
+MTP_CFLAGS = @MTP_CFLAGS@
+MTP_LIBS = @MTP_LIBS@
+MUSICBRAINZ3_CFLAGS = @MUSICBRAINZ3_CFLAGS@
+MUSICBRAINZ3_LIBS = @MUSICBRAINZ3_LIBS@
+MUSICBRAINZ_CFLAGS = @MUSICBRAINZ_CFLAGS@
+MUSICBRAINZ_LIBS = @MUSICBRAINZ_LIBS@
+NM = @NM@
+NMEDIT = @NMEDIT@
+NOTIFY_CFLAGS = @NOTIFY_CFLAGS@
+NOTIFY_LIBS = @NOTIFY_LIBS@
+NO_STRICT_ALIASING_CFLAGS = @NO_STRICT_ALIASING_CFLAGS@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OMF_DIR = @OMF_DIR@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PLUGINDIR = @PLUGINDIR@
+PLUGIN_LIBTOOL_FLAGS = @PLUGIN_LIBTOOL_FLAGS@
+POFILES = @POFILES@
+POSUB = @POSUB@
+PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
+PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
+PYGOBJECT_CODEGEN = @PYGOBJECT_CODEGEN@
+PYGOBJECT_H2DEF = @PYGOBJECT_H2DEF@
+PYGTK_CFLAGS = @PYGTK_CFLAGS@
+PYGTK_DEFSDIR = @PYGTK_DEFSDIR@
+PYGTK_LIBS = @PYGTK_LIBS@
+PYTHON = @PYTHON@
+PYTHON_CFLAGS = @PYTHON_CFLAGS@
+PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
+PYTHON_EXTRA_LIBS = @PYTHON_EXTRA_LIBS@
+PYTHON_LIBS = @PYTHON_LIBS@
+PYTHON_LIB_LOC = @PYTHON_LIB_LOC@
+PYTHON_PLATFORM = @PYTHON_PLATFORM@
+PYTHON_PREFIX = @PYTHON_PREFIX@
+PYTHON_VERSION = @PYTHON_VERSION@
+RANLIB = @RANLIB@
+RB_CLIENT_CFLAGS = @RB_CLIENT_CFLAGS@
+RB_CLIENT_LIBS = @RB_CLIENT_LIBS@
+RHYTHMBOX_CFLAGS = @RHYTHMBOX_CFLAGS@
+RHYTHMBOX_CORE_AGE = @RHYTHMBOX_CORE_AGE@
+RHYTHMBOX_CORE_CURRENT = @RHYTHMBOX_CORE_CURRENT@
+RHYTHMBOX_CORE_REVISION = @RHYTHMBOX_CORE_REVISION@
+RHYTHMBOX_LIBS = @RHYTHMBOX_LIBS@
+ROOT_UNINSTALLED_DIR = @ROOT_UNINSTALLED_DIR@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+TOTEM_PLPARSER_CFLAGS = @TOTEM_PLPARSER_CFLAGS@
+TOTEM_PLPARSER_LIBS = @TOTEM_PLPARSER_LIBS@
+USE_NLS = @USE_NLS@
+VALAC = @VALAC@
+VALA_CFLAGS = @VALA_CFLAGS@
+VALA_LIBS = @VALA_LIBS@
+VAPIDIR = @VAPIDIR@
+VERSION = @VERSION@
+WARN_CFLAGS = @WARN_CFLAGS@
+WEBKIT_CFLAGS = @WEBKIT_CFLAGS@
+WEBKIT_LIBS = @WEBKIT_LIBS@
+WNOERROR_CFLAGS = @WNOERROR_CFLAGS@
+XGETTEXT = @XGETTEXT@
+XMKMF = @XMKMF@
+X_CFLAGS = @X_CFLAGS@
+X_EXTRA_LIBS = @X_EXTRA_LIBS@
+X_LIBS = @X_LIBS@
+X_PRE_LIBS = @X_PRE_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+lt_ECHO = @lt_ECHO@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+pkgpyexecdir = @pkgpyexecdir@
+pkgpythondir = @pkgpythondir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+pyexecdir = @pyexecdir@
+pythondir = @pythondir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+plugindir = $(PLUGINDIR)/scrobbler
+plugin_LTLIBRARIES = libscrobbler.la
+libscrobbler_la_SOURCES = \
+	rb-scrobbler-plugin.c
+
+libscrobbler_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
+libscrobbler_la_LIBTOOLFLAGS = --tag=disable-static
+libscrobbler_la_LIBADD = \
+        $(top_builddir)/shell/librhythmbox-core.la      \
+        $(RHYTHMBOX_LIBS)
+
+INCLUDES = \
+        -DGNOMELOCALEDIR=\""$(datadir)/locale"\"        \
+	-DG_LOG_DOMAIN=\"Rhythmbox\"		 	\
+	-I$(top_srcdir) 				\
+	-I$(top_srcdir)/lib                        	\
+	-I$(top_srcdir)/metadata                       	\
+	-I$(top_srcdir)/player                       	\
+	-I$(top_srcdir)/rhythmdb                       	\
+	-I$(top_srcdir)/widgets                    	\
+	-I$(top_srcdir)/sources                    	\
+	-I$(top_srcdir)/iradio                    	\
+	-I$(top_srcdir)/podcast                    	\
+	-I$(top_srcdir)/plugins				\
+	-I$(top_srcdir)/shell				\
+	-DPIXMAP_DIR=\""$(datadir)/pixmaps"\"		\
+	-DSHARE_DIR=\"$(pkgdatadir)\"                   \
+	-DDATADIR=\""$(datadir)"\"			\
+	$(RHYTHMBOX_CFLAGS)				\
+	$(WARN_CFLAGS)					\
+	-D_XOPEN_SOURCE -D_BSD_SOURCE
+
+plugin_in_files = scrobbler.rb-plugin.desktop.in
+plugin_DATA = $(plugin_in_files:.rb-plugin.desktop.in=.rb-plugin)
+EXTRA_DIST = $(plugin_in_files)
+CLEANFILES = $(plugin_DATA)
+DISTCLEANFILES = $(plugin_DATA)
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/scrobbler/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --gnu plugins/scrobbler/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES)
+	@$(NORMAL_INSTALL)
+	test -z "$(plugindir)" || $(MKDIR_P) "$(DESTDIR)$(plugindir)"
+	@list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || list=; \
+	list2=; for p in $$list; do \
+	  if test -f $$p; then \
+	    list2="$$list2 $$p"; \
+	  else :; fi; \
+	done; \
+	test -z "$$list2" || { \
+	  echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(plugindir)'"; \
+	  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(plugindir)"; \
+	}
+
+uninstall-pluginLTLIBRARIES:
+	@$(NORMAL_UNINSTALL)
+	@list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || list=; \
+	for p in $$list; do \
+	  $(am__strip_dir) \
+	  echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(plugindir)/$$f'"; \
+	  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(plugindir)/$$f"; \
+	done
+
+clean-pluginLTLIBRARIES:
+	-test -z "$(plugin_LTLIBRARIES)" || rm -f $(plugin_LTLIBRARIES)
+	@list='$(plugin_LTLIBRARIES)'; for p in $$list; do \
+	  dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
+	  test "$$dir" != "$$p" || dir=.; \
+	  echo "rm -f \"$${dir}/so_locations\""; \
+	  rm -f "$${dir}/so_locations"; \
+	done
+libscrobbler.la: $(libscrobbler_la_OBJECTS) $(libscrobbler_la_DEPENDENCIES) 
+	$(AM_V_CCLD)$(libscrobbler_la_LINK) -rpath $(plugindir) $(libscrobbler_la_OBJECTS) $(libscrobbler_la_LIBADD) $(LIBS)
+
+mostlyclean-compile:
+	-rm -f *.$(OBJEXT)
+
+distclean-compile:
+	-rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libscrobbler_la-rb-scrobbler-plugin.Plo@am__quote@
+
+.c.o:
+@am__fastdepCC_TRUE@	$(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@am__fastdepCC_FALSE@	$(AM_V_CC) @AM_BACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@	$(COMPILE) -c $<
+
+.c.obj:
+@am__fastdepCC_TRUE@	$(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@am__fastdepCC_FALSE@	$(AM_V_CC) @AM_BACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+@am__fastdepCC_TRUE@	$(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@am__fastdepCC_FALSE@	$(AM_V_CC) @AM_BACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
+
+libscrobbler_la-rb-scrobbler-plugin.lo: rb-scrobbler-plugin.c
+@am__fastdepCC_TRUE@	$(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(libscrobbler_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libscrobbler_la-rb-scrobbler-plugin.lo -MD -MP -MF $(DEPDIR)/libscrobbler_la-rb-scrobbler-plugin.Tpo -c -o libscrobbler_la-rb-scrobbler-plugin.lo `test -f 'rb-scrobbler-plugin.c' || echo '$(srcdir)/'`rb-scrobbler-plugin.c
+@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/libscrobbler_la-rb-scrobbler-plugin.Tpo $(DEPDIR)/libscrobbler_la-rb-scrobbler-plugin.Plo
+@am__fastdepCC_FALSE@	$(AM_V_CC) @AM_BACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='rb-scrobbler-plugin.c' object='libscrobbler_la-rb-scrobbler-plugin.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@	$(LIBTOOL) $(AM_V_lt) --tag=CC $(libscrobbler_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libscrobbler_la-rb-scrobbler-plugin.lo `test -f 'rb-scrobbler-plugin.c' || echo '$(srcdir)/'`rb-scrobbler-plugin.c
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+install-pluginDATA: $(plugin_DATA)
+	@$(NORMAL_INSTALL)
+	test -z "$(plugindir)" || $(MKDIR_P) "$(DESTDIR)$(plugindir)"
+	@list='$(plugin_DATA)'; test -n "$(plugindir)" || list=; \
+	for p in $$list; do \
+	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+	  echo "$$d$$p"; \
+	done | $(am__base_list) | \
+	while read files; do \
+	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(plugindir)'"; \
+	  $(INSTALL_DATA) $$files "$(DESTDIR)$(plugindir)" || exit $$?; \
+	done
+
+uninstall-pluginDATA:
+	@$(NORMAL_UNINSTALL)
+	@list='$(plugin_DATA)'; test -n "$(plugindir)" || list=; \
+	files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+	test -n "$$files" || exit 0; \
+	echo " ( cd '$(DESTDIR)$(plugindir)' && rm -f" $$files ")"; \
+	cd "$(DESTDIR)$(plugindir)" && rm -f $$files
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+	unique=`for i in $$list; do \
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+	  done | \
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
+	mkid -fID $$unique
+tags: TAGS
+
+TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+		$(TAGS_FILES) $(LISP)
+	set x; \
+	here=`pwd`; \
+	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+	unique=`for i in $$list; do \
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+	  done | \
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
+	shift; \
+	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+	  test -n "$$unique" || unique=$$empty_fix; \
+	  if test $$# -gt 0; then \
+	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+	      "$$@" $$unique; \
+	  else \
+	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+	      $$unique; \
+	  fi; \
+	fi
+ctags: CTAGS
+CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+		$(TAGS_FILES) $(LISP)
+	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+	unique=`for i in $$list; do \
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+	  done | \
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
+	test -z "$(CTAGS_ARGS)$$unique" \
+	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+	     $$unique
+
+GTAGS:
+	here=`$(am__cd) $(top_builddir) && pwd` \
+	  && $(am__cd) $(top_srcdir) \
+	  && gtags -i $(GTAGS_ARGS) "$$here"
+
+distclean-tags:
+	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile $(LTLIBRARIES) $(DATA)
+installdirs:
+	for dir in "$(DESTDIR)$(plugindir)" "$(DESTDIR)$(plugindir)"; do \
+	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+	done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	  `test -z '$(STRIP)' || \
+	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+	-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool clean-pluginLTLIBRARIES \
+	mostlyclean-am
+
+distclean: distclean-am
+	-rm -rf ./$(DEPDIR)
+	-rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+	distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am: install-pluginDATA install-pluginLTLIBRARIES
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -rf ./$(DEPDIR)
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+	mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-pluginDATA uninstall-pluginLTLIBRARIES
+
+.MAKE: install-am install-strip
+
+.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
+	clean-libtool clean-pluginLTLIBRARIES ctags distclean \
+	distclean-compile distclean-generic distclean-libtool \
+	distclean-tags distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-pluginDATA \
+	install-pluginLTLIBRARIES install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
+	pdf pdf-am ps ps-am tags uninstall uninstall-am \
+	uninstall-pluginDATA uninstall-pluginLTLIBRARIES
+
+
+%.rb-plugin: %.rb-plugin.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff -urNp rhythmbox-0.12.8git20100611.orig/plugins/scrobbler/rb-scrobbler-plugin.c rhythmbox-0.12.8git20100611/plugins/scrobbler/rb-scrobbler-plugin.c
--- rhythmbox-0.12.8git20100611.orig/plugins/scrobbler/rb-scrobbler-plugin.c	1970-01-01 01:00:00.000000000 +0100
+++ rhythmbox-0.12.8git20100611/plugins/scrobbler/rb-scrobbler-plugin.c	2010-06-13 03:03:07.000000000 +0200
@@ -0,0 +1,467 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
+ *
+ *  arch-tag: New style last.fm plugin
+ *
+ * rb-scrobbler-plugin.h
+ * 
+ * Copyright (C) 2007-2010 - Juergen Kreileder <jk@blackdown.de>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <string.h>
+#include <glib/gi18n-lib.h>
+#include <gmodule.h>
+#include <gtk/gtk.h>
+#include <glib.h>
+#include <glib-object.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <netdb.h>
+#include <arpa/inet.h>
+#include <unistd.h>
+
+#include "rb-plugin.h"
+#include "rb-debug.h"
+#include "rb-shell.h"
+#include "rb-shell-player.h"
+
+#define LASTFM_BETA_APP "last.fm"
+#define LASTFM_APP "lastfm"
+#define PLUGIN_NAME "Rhythmbox"
+#define CMD_EXIT "EXIT_AS_THREAD\n"
+#define HOST "localhost"
+#define PORT 33367
+#define DO_PORTSTEPPING
+#define PORTS_TO_STEP 5
+#define STARTUP_WAIT_MAX 60
+
+
+#define RB_TYPE_SCROBBLER_PLUGIN		(rb_scrobbler_plugin_get_type ())
+#define RB_SCROBBLER_PLUGIN(o)			(G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_SCROBBLER_PLUGIN, RBScrobblerPlugin))
+#define RB_SCROBBLER_PLUGIN_CLASS(k)		(G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_SCROBBLER_PLUGIN, RBScrobblerPluginClass))
+#define RB_IS_SCROBBLER_PLUGIN(o)		(G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_SCROBBLER_PLUGIN))
+#define RB_IS_SCROBBLER_PLUGIN_CLASS(k)		(G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_SCROBBLER_PLUGIN))
+#define RB_SCROBBLER_PLUGIN_GET_CLASS(o)	(G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_SCROBBLER_PLUGIN, RBScrobblerPluginClass))
+
+typedef struct
+{
+	RBPlugin parent;
+	gint playing_changed_id;
+	gint playing_song_changed_id;
+	GAsyncQueue *send_queue;
+	GThread *submit_thread;
+	glong startup_sec;
+	gboolean exit;
+	gboolean playing;
+	gboolean paused;
+} RBScrobblerPlugin;
+
+typedef struct
+{
+	RBPluginClass parent_class;
+} RBScrobblerPluginClass;
+
+
+G_MODULE_EXPORT GType register_rb_plugin (GTypeModule *module);
+GType rb_scrobbler_plugin_get_type (void) G_GNUC_CONST;
+
+
+
+static void rb_scrobbler_plugin_init (RBScrobblerPlugin *plugin);
+static void impl_activate (RBPlugin *plugin, RBShell *shell);
+static void impl_deactivate (RBPlugin *plugin, RBShell *shell);
+
+RB_PLUGIN_REGISTER(RBScrobblerPlugin, rb_scrobbler_plugin)
+
+
+static void
+rb_scrobbler_plugin_class_init (RBScrobblerPluginClass *klass)
+{
+	RBPluginClass *plugin_class = RB_PLUGIN_CLASS (klass);
+	plugin_class->activate = impl_activate;
+	plugin_class->deactivate = impl_deactivate;
+}
+
+static in_addr_t
+get_host(const gchar *hostname)
+{
+	in_addr_t addr = INADDR_NONE;
+	struct in_addr inp;
+	struct hostent *hostinfo;
+    
+	if (inet_aton (hostname, &inp) && inp.s_addr != INADDR_NONE) {
+		addr = inp.s_addr;
+	} else if ((hostinfo = gethostbyname (hostname))) {
+		addr = ((struct in_addr *) hostinfo->h_addr_list[0])->s_addr;
+	}
+
+	return addr;
+}
+
+static int
+connect_to_socket(RBScrobblerPlugin *plugin, in_addr_t addr, guint16 port)
+{
+	struct sockaddr_in name;
+
+	int sock = socket (PF_INET, SOCK_STREAM, 0);
+	if (sock < 0) {
+		rb_debug ("ERROR: Can't create socket");
+		return -1;
+	}
+
+	name.sin_family = AF_INET;
+	name.sin_port = g_htons (port);
+	name.sin_addr.s_addr = addr;
+
+	gboolean retry;
+	do {
+		if (!connect (sock, (struct sockaddr *) &name, sizeof name)) {
+			return sock;
+		}
+		GTimeVal t;
+		g_get_current_time (&t);
+		if (!plugin->exit && t.tv_sec - plugin->startup_sec < STARTUP_WAIT_MAX) {
+			rb_debug ("Waiting for lastfm");
+			g_usleep (G_USEC_PER_SEC);
+			retry = TRUE;
+		} else {
+			retry = FALSE;
+		}
+	} while (retry);
+
+
+#ifdef DO_PORTSTEPPING
+	while (++port <= PORT + PORTS_TO_STEP) {
+		rb_debug ("Connect failed, trying next port (%d)", port);
+		name.sin_port = g_htons (port);
+		if (!connect (sock, (struct sockaddr *) &name, sizeof name)) {
+			return sock;
+		}
+	}
+#endif
+
+	rb_debug ("ERROR: Can't connect to lastfm");
+
+	close (sock);
+	return -1;
+}
+
+static GIOChannel *
+get_channel (RBScrobblerPlugin *plugin)
+{
+	in_addr_t addr;
+
+	addr = get_host (HOST);
+	if (addr == INADDR_NONE) {
+		rb_debug ("ERROR: Unknown host %s", HOST);
+		return NULL;
+	}
+    
+	int sock = connect_to_socket (plugin, addr, PORT);
+	if (sock >= 0) {
+		return g_io_channel_unix_new (sock);
+	}
+    
+	return NULL;
+}
+
+static void
+change_child_pgrp (gpointer userdata __attribute((unused)))
+{
+	setpgrp ();
+}
+
+static void
+start_lastfm ()
+{
+	GPid pid;
+	GError *err = NULL;
+	gchar *argv[] = {
+		LASTFM_BETA_APP,
+		"-tray",
+		NULL
+	};
+
+	if (g_spawn_async (NULL, argv, NULL,
+			   G_SPAWN_STDOUT_TO_DEV_NULL | G_SPAWN_STDERR_TO_DEV_NULL | G_SPAWN_SEARCH_PATH,
+			   change_child_pgrp, NULL, &pid, &err)) {
+		setpgid (pid, pid);
+	} else {
+		rb_debug ("%s", err->message);
+		g_clear_error (&err);
+		err = NULL;
+		gchar *argv[] = {
+			LASTFM_APP,
+			"-tray",
+			NULL
+		};
+		if (g_spawn_async (NULL, argv, NULL,
+				   G_SPAWN_STDOUT_TO_DEV_NULL | G_SPAWN_STDERR_TO_DEV_NULL | G_SPAWN_SEARCH_PATH,
+				   change_child_pgrp, NULL, &pid, &err)) {
+			setpgid (pid, pid);
+		} else {
+			rb_debug ("%s", err->message);
+			g_clear_error (&err);
+		}
+	}
+}
+
+static gpointer
+send_to_as_thread (gpointer p)
+{
+	RBScrobblerPlugin *plugin = (RBScrobblerPlugin *) p;
+	gchar *cmd;
+	gchar *answer;
+	GIOChannel *channel;
+
+	start_lastfm ();
+
+	GTimeVal t;
+	g_get_current_time (&t);
+	plugin->startup_sec = t.tv_sec;
+
+	g_async_queue_ref (plugin->send_queue);
+	while (!plugin->exit) {
+		cmd = g_async_queue_pop (plugin->send_queue);
+
+		if (!strcmp(CMD_EXIT, cmd)) {
+			rb_debug ("Exiting as thread");
+			plugin->exit = TRUE;
+		} else if ((channel = get_channel (plugin))) {
+			rb_debug ("SENDING: %s", cmd);
+			g_io_channel_write_chars (channel, cmd, -1, NULL, NULL);
+			g_io_channel_flush (channel, NULL);
+			g_io_channel_read_to_end (channel, &answer, NULL, NULL);
+			rb_debug ("ANSWER: %s", answer);
+			g_free (answer);
+			g_io_channel_close (channel);
+		} else {
+			rb_debug ("ERROR: %s", cmd);
+		}
+
+		g_free (cmd);
+	}
+	// Clear queue
+	while ((cmd = g_async_queue_try_pop (plugin->send_queue))) {
+		rb_debug ("IGNORED: %s", cmd);
+		g_free (cmd);
+	}
+	g_async_queue_unref (plugin->send_queue);
+	return NULL;
+}
+
+static void
+rb_scrobbler_plugin_init (RBScrobblerPlugin *plugin)
+{
+	rb_debug ("RBScrobblerPlugin initialising");
+}
+
+static void
+send_to_as (RBScrobblerPlugin *plugin, const gchar *cmd)
+{
+	g_async_queue_push (plugin->send_queue, strdup (cmd));
+}
+
+static gchar *
+escape (const gchar *src)
+{
+	g_return_val_if_fail (src != NULL, NULL);
+
+	const guchar *p = (guchar *) src;
+	gchar *dst;
+	gchar* q = dst = g_malloc (strlen (src) * 2 + 1);
+
+	while (*p) {
+		if (*p == '&') {
+			*q++ = '&';
+		}
+		*q++ = *p++;
+	}
+	*q = 0;
+
+	return dst;
+}
+
+static void 
+scrobbler_start (RBScrobblerPlugin *plugin,
+		 const gchar *artist,
+		 const gchar *track,
+		 const gchar *album,
+		 const gchar *mb_id,
+		 guint length,
+		 const gchar *filename)
+{
+	if (!plugin->exit) {
+		plugin->playing = TRUE;
+		plugin->paused = FALSE;
+
+		gchar *a = escape (artist);
+		gchar *t = escape (track);
+		gchar *b = escape (album);
+		gchar *m = escape (mb_id);
+		gchar *p = escape (strncmp (filename, "file:///", 8) == 0 ? &filename[7] : filename);
+
+		gchar *cmd = g_strdup_printf ("START c=" PLUGIN_NAME
+					      "&a=%s&t=%s&b=%s&m=%s&l=%d&p=%s\n",
+					      a, t, b, m, length, p);
+		g_free (a);
+		g_free (t);
+		g_free (b);
+		g_free (m);
+		g_free (p);
+
+		send_to_as (plugin, cmd);
+
+		g_free (cmd);
+	}
+}
+
+static void
+scrobbler_stop (RBScrobblerPlugin *plugin)
+{
+	if (!plugin->exit && plugin->playing) {
+		plugin->playing = FALSE;
+		plugin->paused = FALSE;
+		send_to_as (plugin, "STOP c=" PLUGIN_NAME "\n");
+	}
+}
+
+static void
+scrobbler_pause (RBScrobblerPlugin *plugin)
+{
+	if (!plugin->exit && plugin->playing && !plugin->paused) {
+		plugin->paused = TRUE;
+		send_to_as (plugin, "PAUSE c=" PLUGIN_NAME "\n");
+	}
+}
+
+static void
+scrobbler_resume (RBScrobblerPlugin *plugin)
+{
+	if (!plugin->exit && plugin->playing && plugin->paused) {
+		plugin->paused = FALSE;
+		send_to_as (plugin, "RESUME c=" PLUGIN_NAME "\n");
+	}
+}
+
+static void
+playing_changed_cb (RBShellPlayer *player, gboolean playing, RBScrobblerPlugin *plugin)
+{
+	playing ? scrobbler_resume (plugin) : scrobbler_pause (plugin);
+}
+
+static void
+playing_song_changed_cb (RBShellPlayer *player, RhythmDBEntry *entry, RBScrobblerPlugin *plugin)
+{
+	if (entry == NULL) {
+		rb_debug ("entry == NULL");
+		scrobbler_stop (plugin);
+		return;
+	}
+
+	RhythmDBEntryType type = rhythmdb_entry_get_entry_type (entry);
+	if (type->category != RHYTHMDB_ENTRY_NORMAL ||
+	    type == RHYTHMDB_ENTRY_TYPE_PODCAST_POST ||
+	    rhythmdb_entry_get_string (entry, RHYTHMDB_PROP_PLAYBACK_ERROR) != NULL) {
+		rb_debug ("will not scrobble");
+		scrobbler_stop (plugin);
+		return;
+	}
+
+	const gchar *artist = rhythmdb_entry_get_string (entry, RHYTHMDB_PROP_ARTIST);
+	const gchar *title = rhythmdb_entry_get_string (entry, RHYTHMDB_PROP_TITLE);
+
+	if (!strlen (artist) || !strlen (title) ||
+	    !strcmp (artist, _("Unknown")) || !strcmp (title, _("Unknown"))) {
+		rb_debug ("will not scrobble");
+		scrobbler_stop (plugin);
+		return;
+	}
+
+	scrobbler_start (plugin, artist, title,
+			 rhythmdb_entry_get_string (entry, RHYTHMDB_PROP_ALBUM),
+			 rhythmdb_entry_get_string (entry, RHYTHMDB_PROP_MUSICBRAINZ_TRACKID),
+			 rhythmdb_entry_get_ulong (entry, RHYTHMDB_PROP_DURATION),
+			 rhythmdb_entry_get_string (entry, RHYTHMDB_PROP_LOCATION));
+}
+
+static void
+impl_activate (RBPlugin *rbplugin,
+	       RBShell *shell)
+{
+
+	if (!g_thread_supported ()) {
+		g_thread_init (NULL);
+	}
+
+	RBScrobblerPlugin *plugin = RB_SCROBBLER_PLUGIN (rbplugin);
+	plugin->send_queue = g_async_queue_new ();
+	plugin->submit_thread = g_thread_create (send_to_as_thread, rbplugin, TRUE, NULL);
+
+
+	plugin->exit = FALSE;
+	plugin->playing = FALSE;
+	plugin->paused = FALSE;
+
+	GObject *shell_player;
+	g_object_get (shell, "shell-player", &shell_player, NULL);
+
+	plugin->playing_changed_id = g_signal_connect_object (shell_player,
+							      "playing-changed",
+							      G_CALLBACK (playing_changed_cb),
+							      plugin, 0);
+
+	plugin->playing_song_changed_id = g_signal_connect_object (shell_player,
+								   "playing-song-changed",
+								   G_CALLBACK (playing_song_changed_cb),
+								   plugin, 0);
+
+	g_object_unref (shell_player);
+}
+
+static void
+impl_deactivate	(RBPlugin *rbplugin,
+		 RBShell *shell)
+{
+	RBScrobblerPlugin *plugin = RB_SCROBBLER_PLUGIN (rbplugin);
+	plugin->exit = TRUE;
+	send_to_as (plugin, CMD_EXIT);
+
+	g_thread_join (plugin->submit_thread);
+	plugin->submit_thread = NULL;
+
+	g_async_queue_unref (plugin->send_queue);
+	plugin->send_queue = NULL;
+
+	GObject *shell_player;
+	g_object_get (shell, "shell-player", &shell_player, NULL);
+
+	if (plugin->playing_changed_id != 0) {
+		g_signal_handler_disconnect (shell_player, plugin->playing_changed_id);
+		plugin->playing_changed_id = 0;
+	}
+
+	if (plugin->playing_song_changed_id != 0) {
+		g_signal_handler_disconnect (shell_player, plugin->playing_song_changed_id);
+		plugin->playing_song_changed_id = 0;
+	}
+
+	g_object_unref (shell_player);
+}
diff -urNp rhythmbox-0.12.8git20100611.orig/plugins/scrobbler/scrobbler.rb-plugin.desktop.in rhythmbox-0.12.8git20100611/plugins/scrobbler/scrobbler.rb-plugin.desktop.in
--- rhythmbox-0.12.8git20100611.orig/plugins/scrobbler/scrobbler.rb-plugin.desktop.in	1970-01-01 01:00:00.000000000 +0100
+++ rhythmbox-0.12.8git20100611/plugins/scrobbler/scrobbler.rb-plugin.desktop.in	2010-06-13 03:03:07.000000000 +0200
@@ -0,0 +1,8 @@
+[RB Plugin]
+Module=scrobbler
+IAge=1
+_Name=New Style Last.fm Scrobbler
+_Description=Scrobble songs via the last.fm client
+Authors=Jürgen Kreileder <jk@blackdown.de>
+Copyright=Copyright © 2007-2010 Jürgen Kreileder
+Website=http://blog.blackdown.de/2007/05/19/lastfm-for-rhythmbox-new-style
=
