How to add "Add to VLC playlist" to the right click menu of Nautilus?

The Problem

While you are playing any song or other media file on VLC and open another such file, then another instance of VLC opens. (You aren't going to hear and understand anything until you are a robot)

What I Want

I what to add a "Add to VLC Playlist" to the right click menu of Nautilus as similar in Windows.


Solution 1:

It can be fixed in VLC preferences:

  • Open VLC preferences by going to tools menu

enter image description here

  • In preferences, Enable "Allow only one instance" and "Enqueue files in one instance mode" like shown below:

enter image description here

  • Click save. That's it!

From now on when you open files with VLC they will be enqueued in your playlist.

Solution 2:

You can do that using nautilus-action-Configuration-Tool

  1. Install the tool using using

    sudo apt-get install nautilus-action
    
  2. After that close all the open nautilus instances

    nautilus -q
    
  3. Open nautilus-action-Configuration-Tool.

  4. Then click on add new action button and name your action.
  5. Click the Command tab and enter the command

    vlc --one-instance
    

    You should also enter the appropriate parameter into the Parameters box — you can click the Legend button to see a list of parameters you can use.

    In our case, we want the %f parameter to feed filename or better %B if we may have spaces in it.We can also view all the detailes about the parameters by clicking on the Legend button.

    Nautilus-Actions shows you a preview of the command it will run, so you’ll know you’re on the right track.