Slacker Screenlet

Conky

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
5.0
Description:

A streaming radio Slacker.com screenlet.

Now your music won't stop when you (accidentally) close your browser

Version 0.3 now includes LastSlacker.com Last.FM scrobbling support. You can turn this feature off in the Screenlet properties menu.
Last changelog:

13 years ago

0.3
- Fixed screenlets-manager recursive loading bug
- Added Last.FM (LastSlacker) support
0.2
- Fixed Ubuntu Bug
0.1
- Initial Release

Whise

13 years ago

change to screenlets section please

Report

idiotonuni

13 years ago

this is my favorite screenlet ever!!! Thank you!

Report

C

EnigmaCurry

13 years ago

Thanks!

Glad I could make someone's day, you sure made mine :)

Report

Whise

13 years ago

hi , here is a work arround for the ubuntu gtmozembed bug

just add the code before importing it

nice job :)


Quote:
#########WORKARROUND FOR GTKOZEMBED BUG################

if sys.argv[0].endswith('SlackerScreenlet.py'):
if commands.getoutput("lsb_release -is") == 'Ubuntu':
mypath = sys.argv[0][:sys.argv[0].find('SlackerScreenlet.py')].strip()
if os.path.isfile(mypath + "running"):
os.system("rm -f " + mypath + "running")

else:
os.system ("export LD_LIBRARY_PATH=/usr/lib/firefox \n export MOZILLA_FIVE_HOME=/usr/lib/firefox \n python "+ sys.argv[0] + " &")
fileObj = open(mypath + "running","w") #// open for for write
fileObj.write('gtkmozembed bug workarround')

fileObj.close()
exit()
else:
pass
import gtkmozembed



Report

C

EnigmaCurry

13 years ago

Hi Whise,

Thanks for clarifying that this code needs to be run BEFORE importing gtkmozembed. I actually based this screenlet after your TheGamer screenlet. I had this initialization code there to begin with but it wasn't working because I was importing gtkmozembed beforehand. You'll see what led to my confusion if you look in TheGamerScreenlet.py where you have gtkmozembed imported twice :)

Thanks again! Without your screenlets to use as a model I never would have created this.

Report

Whise

13 years ago

ohh didnt know i imported it twice , ill have to fix that , thanks

Report

13 years ago

0.3
- Fixed screenlets-manager recursive loading bug
- Added Last.FM (LastSlacker) support
0.2
- Fixed Ubuntu Bug
0.1
- Initial Release

12345678910
Be the first to comment
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.3
updated Apr 05 2008
added Nov 20 2007
downloads 24h
0
mediaviews 24h 0
pageviews 24h 1