
Slacker Screenlet
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
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.
12 years ago
0.3
- Fixed screenlets-manager recursive loading bug
- Added Last.FM (LastSlacker) support
0.2
- Fixed Ubuntu Bug
0.1
- Initial Release
12 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
12 years ago
Report
idiotonuni
13 years ago
Report
EnigmaCurry
13 years ago
Glad I could make someone's day, you sure made mine :)
Report
Whise
13 years ago
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
EnigmaCurry
13 years ago
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
Report