Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old January 31st, 2007   #1
zigford
5 Cups of Ubuntu
 
zigford's Avatar
 
Join Date: Jul 2005
Location: Sunny Coast Australia
Beans: 30
Hardy Heron (Ubuntu Development)
Send a message via ICQ to zigford Send a message via MSN to zigford Send a message via Skype™ to zigford
HOWTO: Deskbar rhythmbox plugin

Credit goes to Ryan Rousseau for creating this plugin

Deskbar can be extended very easily with plugins (known as handlers) written in python.
Ryan Rousseau has written a nice one that reads the rhythmbox xml file and can play and control Rhythmbox directly from deskbar.

To install the rhythmbox plugin for the current user. Download the attached file and copy it to:

Code:
~/.gnome2/deskbar-applet/handlers
To intall the rhythmbox plugin system wide. Download the attached file and copy it to:

Code:
/usr/lib/deskbar-applet/handlers
Then enable the plugin. Right click deskbar and click properties scroll down and tick the two checkboxes for rhythmbox.

Now deskbar already knows where your rhythmbox xml database is and you can already search and play your songs. *Note, at this point I think you can only search on song name.

If someone else knows python, they could modify this script to enable searching via other database tags.

Ryan has given permission for others to modify this deskbar handler.
Attached Files
File Type: py rhythmbox.py (5.8 KB, 442 views)
__________________
Linux - Many are called, but few are chosen
zigford is offline   Reply With Quote
Old March 28th, 2007   #2
everdred
Just Give Me the Beans!
 
everdred's Avatar
 
Join Date: Nov 2005
Location: Boca Raton, Fl, USA
Beans: 80
Ubuntu 9.10 Karmic Koala
Re: HOWTO: Deskbar rhythmbox plugin

This is seriously good. Thanks, Ryan!
everdred is offline   Reply With Quote
Old May 21st, 2007   #3
vnkatesh
First Cup of Ubuntu
 
Join Date: Dec 2006
Location: Cochin, India
My beans are hidden!
Ubuntu 7.10 Gutsy Gibbon
Send a message via Yahoo to vnkatesh Send a message via Skype™ to vnkatesh
Re: HOWTO: Deskbar rhythmbox plugin

Great Plugin!
vnkatesh is offline   Reply With Quote
Old May 21st, 2007   #4
Kobalt
Chocolate-Covered Ubuntu Beans
 
Kobalt's Avatar
 
Join Date: May 2006
Location: Strasbourg, Fr
Beans: 2,323
Ubuntu Development Release
Send a message via ICQ to Kobalt Send a message via MSN to Kobalt
Re: HOWTO: Deskbar rhythmbox plugin

One more interesting function of the Deskbar. Neat !
Kobalt is offline   Reply With Quote
Old June 1st, 2007   #5
rmjb
Gee! These Aren't Roasted!
 
Join Date: Jul 2006
Location: Trinidad and Tobago
Beans: 160
Ubuntu 9.10 Karmic Koala
Re: HOWTO: Deskbar rhythmbox plugin

I just tried this. My music is on a gnome-vfs ssh share and when I typed the name of a song I got a crash.
I think it's related to the fact I'm on a ssh share because I get this coming up:
Code:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/deskbar/DeskbarApplet.py", line 177, in on_start_query_real
    matches = modctx.module.query(qstring)
  File "/home/richard/.gnome2/deskbar-applet/handlers/rhythmbox.py", line 180, in query
    path = gnomevfs.get_local_path_from_uri(path)
RuntimeError: unknown error
Something to take a look at I guess.

- rmjb
__________________
Registered Linux User #422402
rmjb is offline   Reply With Quote
Old July 16th, 2007   #6
bamboo.7
First Cup of Ubuntu
 
bamboo.7's Avatar
 
Join Date: Apr 2007
Location: Bloomington IN
Beans: 9
Ubuntu 7.04 Feisty Fawn
Send a message via AIM to bamboo.7
Re: HOWTO: Deskbar rhythmbox plugin

Thats pretty neat thank you!
bamboo.7 is offline   Reply With Quote
Old July 17th, 2007   #7
vnkatesh
First Cup of Ubuntu
 
Join Date: Dec 2006
Location: Cochin, India
My beans are hidden!
Ubuntu 7.10 Gutsy Gibbon
Send a message via Yahoo to vnkatesh Send a message via Skype™ to vnkatesh
Re: HOWTO: Deskbar rhythmbox plugin

i too had a similar problem, maybe because i load it in the 'Failsafe GNOME' mode, the error pops up
vnkatesh is offline   Reply With Quote
Old August 4th, 2007   #8
dkbg
5 Cups of Ubuntu
 
Join Date: Dec 2005
Location: Canada
My beans are hidden!
Ubuntu 7.04 Feisty Fawn
Send a message via AIM to dkbg Send a message via MSN to dkbg Send a message via Skype™ to dkbg
Re: HOWTO: Deskbar rhythmbox plugin

The song search worked but controlling Rhythmbox didn't. I fixed this by changing "rhythmbox" to "rhythmbox-client" on line 44 of the script:

Code:
argv = ['rhythmbox', self.rb_arg]
to
Code:
argv = ['rhythmbox-client', self.rb_arg]
dkbg is offline   Reply With Quote
Old September 5th, 2007   #9
mabrowning
First Cup of Ubuntu
 
Join Date: Sep 2007
Beans: 1
Gutsy Gibbon Testing
Re: HOWTO: Deskbar rhythmbox plugin

I really liked this applet, but I upgraded to Gutsy Gibbon, and it broke, because they switched to a new Deskbar-applet API, so I updated this plugin and gave the ability to search Song Title, Artist, and Album.

Place this in
Code:
~/.gnome2/deskbar-applet/modules-2.20-compatible
for just your user, or
Code:
/usr/lib/deskbar-applet/modules-2.20-compatible/
for a system wide installation.

Massive props to Ryan Rousseau for writing the original.
Attached Files
File Type: py rhythmbox.py (5.9 KB, 105 views)

Last edited by mabrowning; September 6th, 2007 at 11:29 AM..
mabrowning is offline   Reply With Quote
Old November 9th, 2007   #10
everdred
Just Give Me the Beans!
 
everdred's Avatar
 
Join Date: Nov 2005
Location: Boca Raton, Fl, USA
Beans: 80
Ubuntu 9.10 Karmic Koala
Re: HOWTO: Deskbar rhythmbox plugin

Quote:
Originally Posted by mabrowning View Post
I really liked this applet, but I upgraded to Gutsy Gibbon, and it broke, because they switched to a new Deskbar-applet API, so I updated this plugin and gave the ability to search Song Title, Artist, and Album.
Just noticed your comment... thank you for updating this!
everdred is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:06 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry