GNOME Bugzilla – Bug 582880
Right-click and enqueue music file(s) to rhythmbox Play Queue.
Last modified: 2018-05-24 14:22:41 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.
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.
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.
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.
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.
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
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.
-- 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.