Rhythmbox Plugin: Jump to Playing 0.3(.1)

Update 2012-01-29 – Deprecated:
Brief: This plugin has been deprecated. For future versions and updates, please go here.

Less Brief:If you’re using a newer version of Rhythmbox, you’ll need a newer version of this plugin. I’m not sure exactly which RB version the plugin format changed, but I am currently using Rhythmbox 2.90.1 on Ubuntu 11.10 and this plugin no longer works. However, Timo Loewe has ported jump-to-playing to Rhythmbox 3, all properly hosted and everything! Get it and any future updates here (https://github.com/dmo60/JumpToPlaying). This is the version I’m now using. Thanks, Timo! :D

- – - – -

The following pertains to the deprecated version of the plugin…

- – - – -

This plugin will display the View : Jump to Playing Song link as a button in the toolbar and/or as link in the Browser’s context menu. Other Rhythmbox plugins can be found here.

Screenshots


Using a future version of Rhythmbox – patch here – the menu item will appear in a plugin placeholder, above Properties. Otherwise, it will appear at the bottom, like previous versions.


From version 0.3, the Open Folder plugin will also be placed in the plugin placeholder.

Changes Since 0.2

Just a couple small changes since 0.2.

  • Selecting the context menu option in the preferences will now display the link in PodcastView and PlaylistView popups, as well as BrowserView and QueuePlaylistView.
  • Assuming the patch on bug 557152 is applied, this will place the context menu items in a plugin placeholder and allow the Preferences to remain the last menu item.
  • Update (Nov 10 2008): Modified version of patch has been applied to RB development trunk, so the next version of Rhythmbox will have this update. Yay! Version 0.3.1 of jump-to-playing is to account for the modifications. Please use it. :)

Download

jump-to-playing-0.3.tar.gz jump-to-playing-0.3.1.tar.gz
Browse the Source: Here
Grab the Source: bzr branch "http://stevenbrown.ca/src/jump-to-playing/"

Installation

  1. Extract the jump-to-playing folder into your ~/.gnome2/rhythmbox/plugins/ directory (or ~/.local/share/rhythmbox/plugins/ directory, if the .gnome2 directory doesn’t exist). Completely replace any previous versions.
  2. (Re)Start Rhythmbox and enable the plugin in Edit : Plugins.

Todo

From my previous post.

  • the gconf keys in gconf-editor say they have no schema. The main plugins’ keys have a schema and don’t give a warning. Definitely not serious, though.
  • it currently adds/removes the ui string when the options are toggled in the configure dialog. I have a feeling it might be better to only add/remove them in the activation/deactivation, and just hide/show here. Maybe faster?
  • it currently hides the browser button in small display mode. That has nothing to do with the jump-to-playing button. That should be in core, if it was decided that was the desired behaviour.
  • to hide the buttons in the small display, it checks the value at activation, and it connects to the View menu’s toggleButton’s “toggled” signal. So whenever it’s toggled, the gconf value for the small display mode is checked, but I think there’s a delay sometimes. Pushing Ctrl D quickly a few times may result in incorrect UI presented. I remember deciding that this is due to a delay set on the gconf callback to overcome some other bug….

All patches are welcome! :-)

Update 2008/10/26: Added screenshot, descriptions to screenshots, and link to main plugin page.

Update 2008/11/10: Added link to version 0.3.1 and added description.

Update 2010/12/08: Added alternative installation directory.


Information about this entry:

21 Comments on “Rhythmbox Plugin: Jump to Playing 0.3(.1)”

  1. Dubbel Says:

    Hello!

    I tryed your plugin and i think its very usefull! :)

    I try to code a plugin for rhythmbox, too, but i have a question:
    Do you know how i can react to key sequences with python?

    I asked already in the IRC channel, but it seems that nobofy knows a answer… do you have an idea?

    Sorry, im from Germany and 16, so my English isn`t the best ^^

  2. Steve Says:

    Hi Dubbel,

    If you mean keyboard combinations, like Ctrl+L, then you’d have to connect your functions to the appropriate GTK+ events. But I’d suggest writing a more detailed question on the rhythmbox-devel list, stating what it is you want to do, and posting example code, if you have any. Good luck. :)

  3. Dubbel Says:

    Ah, Thank you very much!
    I wasn’t sure wheater there is a function from rythmbix or not to check keyboard combinations…
    Goodbye,
    Hauke

  4. Ed Jolanski Says:

    When I try to activate this plugin using rhythmbox 0.11.6 (Ubuntu 8.10) I get the message: “Unable to activate plugin Jump to Playing”. On the consulte I get:

    ImportError: No module named jump-to-playing
    (rhythmbox:7030): Rhythmbox-WARNING **: Could not load plugin jump-to-playing
    (rhythmbox:7030): Rhythmbox-WARNING **: Error, impossible to activate plugin ‘Jump to Playing’

  5. Steve Says:

    Hi Ed,

    I have the same setup and I just tried deleting my installed version, downloading the version(s) on this webpage, and restarting RB. I had no problems, so I’m not sure what the problem is. My only suggestion is to stop RB, remove the current ~/.gnome2/rhythmbox/plugins/jump-to-playing folder and download/extract it again. There should be 4 files inside the jump-to-playing folder, at first. When you’ve done that, start RB again and see if the problem is still there. (After starting RB should compile and add two more files to the folder, so there should be six files.)

  6. Brett Says:

    Not sure if it will help anyone, but here’s a quick script for installation:

    # install jump-to-playing 0.3.1
    cd $HOME &&
    wget http://www.stevenbrown.ca/blog/files/2008/10/jump-to-playing-0.3.1.tar.gz
    
    # make sure the file downloaded properly
    if [ $? -ne 0 ]; then
    	echo ' !! Could not download jump-to-playing plugin!'
    fi
    
    # delete old jump-to-playing plugin, if it exists
    if [ -d $HOME/.gnome2/rhythmbox/plugins/jump-to-playing/ ]; then
    	rm -r $HOME/.gnome2/rhythmbox/plugins/jump-to-playing/
    fi
    
    # create rhytmbox directory if it does not exist
    if [ ! -d $HOME/.gnome2/rhythmbox/plugins/ ]; then
    	mkdir -p $HOME/.gnome2/rhythmbox/plugins/
    fi
    
    # extract downloaded file to rhythmbox plugins directory
    if [ -f $HOME/jump-to-playing-0.3.1.tar.gz ]; then
    	tar -xvzf jump-to-playing-0.3.1.tar.gz -C $HOME/.gnome2/rhythmbox/plugins/ &&
    	rm $HOME/jump-to-playing-0.3.1.tar.gz
    else
    	echo ' !! Could not install jump-to-playing plugin!'
    fi 
    
  7. Brett Says:

    Sorry Steve, your blog scrubbed some content in my script… such as && = &&

    If you fix that, then my script should work.

    Sorry :S

  8. Steve Says:

    Thanks for the script, Brett! I updated your comment to fix the double ampersands. Let me know if there’s anything else.

  9. asun Says:

    Hello, great plugin, is very useful, thank you

    What about a button for lyrics? It will be perfect

    Salu2

  10. Plugins for Rhythmbox | Tutoriales debian Says:

    [...] Pagina Principal [...]

  11. Graham King Says:

    I’m on Ubuntu 10.10, I didn’t have a ‘.gnome2′ directory. Had to unzip it in ~/.local/share/rhythmbox/plugins/

    Thanks for a the great plugin.

  12. Steve Says:

    Thanks, Graham. I’ve updated the installation notes. :)

  13. mbiza Says:

    Doesn’t work for me.. I’m on debian wheezy (testing) amd64 and rhythmbox 0.12.8-3.
    All songs are in a nfs mounted volume, but I don’t think this is the problem

  14. Steve Says:

    Mbiza, did you try both installation directories?

  15. Rhythmbox Plugin : Jump to playing | Daidais Says:

    [...] ma foi bien pratique… Alors comme d’habitude pour en savoir plus, c’est par ici. Partager sur :ShareDiggEmail Ce contenu a été publié le Technologie par Daidais. Mettez-le en [...]

  16. tabasco Says:

    Hi,

    I tried both install directories, but the plugin doesn’t show in Rhythmbox..

    Rhythmbox 2.90.1
    Xubuntu 11.10

  17. Steve Says:

    Hi tabasco,

    I actually have the same problem as you. And I’m sorry, I haven’t had a good chance to look into why. It seems 3rd party plugins don’t work on the 11.10 version of RB…. :/

    I will update here if anything changes.

  18. Timo Says:

    Hi Steve,

    I’m about to write a lyrics plugin for Rhythmbox (one that actually works) and thereby stumbled upon your plugin. I liked the idea and I ported the core functionality to work with the new Rhythmbox 3 (I removed the preference things though).
    I was just wondering, if you want me to send you the code or if you mind me pushing it to my github site (https://github.com/dmo60 , you can also find my lyrics plugin there and test it ;) )

  19. Steve Says:

    Hi Timo,

    I wouldn’t mind at all. Please go ahead and push it. :)

  20. timo Says:

    Alright, so you can find it here: https://github.com/dmo60/JumpToPlaying
    Feel free to download and use it :)

  21. Steve Says:

    Sweet! Totally awesome. Thanks Timo! :D

    Updated this post to reflect the good news. :)

Leave a Comment

Allowed code: <a href="" title="">, <abbr title="">, <acronym title="">, <b>, <blockquote cite="">, <cite>, <code>, <del datetime="">, <em>, <i>, <q cite="">, <strike>, <strong>