Welcome to Vifm Q&A, where you can ask questions about Vifm usage. Registration is optional, anonymous posts are moderated. GitHub or Google logins are enabled.

How to i get vlc to open a file ?

0 votes
asked Feb 21, 2019 in vifm by martin
edited Feb 22, 2019 by xaizek

How to i get vlc to open a file ?
i have this in my vifmrc.

filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob vlc %c

but i get this error.

xdg-open: unexpected argument 'movietosee.mkv'
Try 'xdg-open --help' for more information.
Press return ...

1 Answer

0 votes
answered Feb 22, 2019 by xaizek

You probably have filetype * xdg-open or similar above the line you've shown. The order matters, so put new line higher in vifmrc.

You can check what will be run by using :file on an existing file with one of those extensions or with :filetype movie.mkv (the file doesn't have to exist).

If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here is acceptable, but this is not a perfect place for them.