After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 582880 - Right-click and enqueue music file(s) to rhythmbox Play Queue.
Right-click and enqueue music file(s) to rhythmbox Play Queue.
Status: RESOLVED OBSOLETE
Product: rhythmbox
Classification: Other
Component: Plugins (other)
HEAD
Other All
: Normal enhancement
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-05-16 17:42 UTC by Seemanta Dutta
Modified: 2018-05-24 14:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Nautilus plugin which gives a context sensitive menu item to enqueue a music file into rhythmbox. (3.53 KB, text/x-python)
2009-05-16 17:58 UTC, Seemanta Dutta
Details
Screenshot of the plugin in action. (82.17 KB, image/png)
2009-05-16 18:05 UTC, Seemanta Dutta
Details

Description Seemanta Dutta 2009-05-16 17:42:07 UTC
When I am browsing through the filesystem, I should be able to right-click any supported music file or multiple files and then enqueue it to the rhythmbox Play Queue.

This should work even if the file is not yet present in the rhythmbox library. The plugin should be intelligent enough and import the file if necessary. Also it should support enqueuing multiple files from within nautilus.

Preferably, it should be written as a Nautilus plugin so that the option to enqueue comes up in the context sensitive menu of Nautilus.
Comment 1 Seemanta Dutta 2009-05-16 17:43:39 UTC
I have already written the plugin. But since the plugin is not a rhythmbox plugin technically speaking, may I attach it to bugzilla, rather than send in a patch ? It is just a .py file.
Comment 2 Seemanta Dutta 2009-05-16 17:58:02 UTC
Created attachment 134768 [details]
Nautilus plugin which gives a context sensitive menu item to enqueue a music file into rhythmbox.

This plugin for nautilus provides a way to right-click any supported music file and enqueue it to the rhythmbox Play Queue.
 
Steps to install:

1. Install python-nautilus package which gives the python bindings for Nautilus:

       sudo apt-get install python-nautilus

2. Create a folder called 'python-extensions' within .nautilus within your home folder.

3. Copy the attached script, `add-to-rhythmbox.py` into this folder.

4. Restart nautilus by the command:

   killall nautilus

5. You are all set!! Check the attached screenshot to see how this plugin looks like before installing it, if you wish.
Comment 3 Seemanta Dutta 2009-05-16 18:05:37 UTC
Created attachment 134770 [details]
Screenshot of the plugin in action.

This is the screenshot of how the plugin looks likein action. Check out this screenshot before installing the plugin in case you are wondering how it would look like.
Comment 4 Jonathan Matthew 2009-05-17 01:12:23 UTC
Why did you close this bug?  It certainly hasn't been fixed.  

I don't know if this belongs in rhythmbox or if there's a collection of nautilus plugins somewhere, or if there's some other way to make nautilus plugins available to users..

Code like this should use the dbus interface directly, rather than calling rhythmbox-client.  There are some simple examples in the rhythmbox source tree under remote/dbus/.

The strings displayed to the user need to be translated.  Displaying python exceptions and dbus errors directly to the user isn't a good idea.
Comment 5 Seemanta Dutta 2009-05-17 08:26:51 UTC
Oops! I am sorry. I solved the bug and thought it would be good idea to resolve the bug. Now I know that the solution I provided is not the best one so I apologize for my mistake.

Having said that, can you please tell me what I should do in order to resolve this?
The following points I shall work on and get them done:

1. Translate the strings in my plugin. This one, I understood.
2. Use d-bus client rather than rhythmbox client. This also can be taken care of from within the python code, I suppose.

But I am not sure what to say about the decision to use any existing collection of nautilus scripts. Should I have raised this as a nautilus bug? Shall I do that and then duplicate this bug to the nautilus bug?

regards,
Seemanta
Comment 6 Jonathan Matthew 2009-05-17 08:57:14 UTC
There doesn't seem to be a general repository for nautilus extensions (except maybe http://g-scripts.sourceforge.net/), so perhaps it would make more sense to include this in rhythmbox as another dbus example?  I don't know.
Comment 7 GNOME Infrastructure Team 2018-05-24 14:22:41 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/rhythmbox/issues/748.