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
, runnautilus
and 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.
I tried:
- Bizarre things like tring to fetch stdout/stderr with
strace -p`pgrep -l '^vlc$' | col1 | head -1` -s9999 -e write
withwatch
. I couldn't do it. - On
Exec
parameter of/usr/share/applications/vlc.desktop
I have/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.
I believe this is a different situation than this one. I already read this, this and this.
Maybe a related useful question could be: How exactly Nautilus run associated program of double-clicked file?
Update 2018-02-12
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).
Open the terminal:
After
Exec=
add:If this doesn't work, try just with
/usr/bin/vlc
. Last resort you could use the following line:But I assume you want to avoid terminal dependency.
I had a very similar issue - doubleclicking a file did not seem to do anything but when running VLC from command line I was able to play videos. The VLC GUI was missing though.
Because Pablo Bianchi suggested doing
killall nautilus
, I ran nautilus from command line. That showed me that when I doubleclicked a video, VLC displayed errors I could not see without the command line. I then googled them and stumbled upon this thread.For me, installing QT4 fixed the problem. Apparently it was an issue with the VLC GUI, not Nautilus.
Had same problem. This worked for me:
All worked OK then.
TL;DR: Run
killall vlc
and then then try clicking on the icon again.Removing the
--started-from-file
did help, but after some investigation I found this (undocumented) option probably causes bit special behaviour and the root cause seems something different:If there is some
vlc
process already. The newvlc
process asks on dbus whether there is another vlc running and when there is some, it asks the older process to open new window and exits.This is all nice but only if the old process is not stuck somehow -- not opening the window. In that case something like
killall vlc
should help.Unfortunately right now I cannot reproduce and confirm this hypothesis now.