When double-clicking any video (I tried different formats) VLC just open and close again after around 14 seconds:
It works fine if I:
- Open VLC from terminal or any other way and then open the same file.
killall nautilus, run
nautilusand double-clic the file (that surprise me).
- Use Nemo, Double-commander or other file manager and double-clic the file.
Last think make me think is a nautilus bug, but doesn't happen with any other program.
- Bizarre things like tring to fetch stdout/stderr with
strace -p`pgrep -l '^vlc$' | col1 | head -1` -s9999 -e writewith
watch. I couldn't do it.
/usr/bin/vlc --started-from-file %U. Without luck, I tried changing to:
File format is correctly associated with VLC. If I associate it with other program everything goes fine.
Maybe a related useful question could be: How exactly Nautilus run associated program of double-clicked file?
This happened with Unity, on Ubuntu 16.04. Now with VLC 2.2.2-0-g6259d80 and GNOME nautilus 3.14.3 I don't have this problem anymore. So probably it was a bug on nautilus (since is the same version of VLC).