I use xdg-open
a lot in the terminal; this opens a file in the default application. However, sometimes I'd like to open a file in a different (non-default) application. Is there a way to achieve this from the terminal?
(Obviously, some applications can take a file as an argument, e.g. vlc /path/to/movie.mp3
, but I'm looking for a more generic way that works in all situations, similar to xdg-open
.)
An advantage of an xdg-open
-like command is that the terminal window can be closed after opening the file/application. However, if I use (e.g.) vlc /path/to/movie.mp3 &, then I'll need to keep the terminal window open.
xgd-open
does is finds an application matching the file type and then invoking it as(app_name) (file_name)
– Sergey Jan 18 '13 at 23:58vlc /path/to/movie.mp3 &
, then I'll need to keep the terminal window open. – Sparhawk Jan 19 '13 at 0:07