I've unchecked VLC's option – 'only allow one instance', since it would help simultaneous playbacks. But sometimes it is desirable to just open a new file in the already running one. Is it possible to append a script in nautilus (I don't know how) that will open the file in the already running vlc, instead of changing vlc preference or dragging and dropping methods?
Edit:
You guys might already know this, but I just found out that we could put bash scripts at "/home/.gnome2/nautilus-scripts" either in folders or not (to group them). So it's just a matter of finding out the running pid of vlc and force the file to open in it. I don't know bash scripting but if you do, please help me out here.
Best Answer
Your new edit at the question is good pointed. But I'll rephrase.
The submenu Scripts only appears in the right click on a file or directory in Nautilus once you have at least one script in the scripts directory. This script directory should be located in (if you don't have it, you should create it):
~/.local/share/nautilus/scripts
- for versions of Nautilus >= 3.6~/.gnome2/nautilus-scripts
- for versions of Nautilus < 3.6You can check your nautilus version from terminal using
nautilus --version
command.These being said, the following script should make the trick about you asked for your VLC: