[Thunar-dev] Conditional "Open" command
mmassonnet at gmail.com
mmassonnet at gmail.com
Sun Nov 4 20:36:29 CET 2007
On Sun, Nov 04, 2007 at 08:06:40PM +0100, mike wrote:
> On Sun, Nov 04, 2007 at 07:33:55PM +0100, mike wrote:
> > On Sun, Nov 04, 2007 at 05:41:43PM +0100, Mathias Brodala wrote:
> > > Hi.
> > >
> > > Imagine the following situation: you have two files in a directory, a video and
> > > a subtitle file for this video.
> > >
> > > Now just calling, e. g. mplayer with these two files won’t do since it requires
> > > the "-sub" option to recognize the subtitle file.
> > >
> > > Creating a custom action also doesn’t work since the custom command won’t be
> > > displayed as soon as both the video and subtitle file are selected. (Pattern:
> > > "*.ass;*.srt;*.ssa", for video and text files)
> > >
> > > Any idea how I could accomplish this in Thunar? It would be great if Thunar
> > > could do all of this by itself and required me only to select the usual "Open"
> > > action.
> >
> > Most probably, you have a b0rked mplayer. Here it works just fine if I
> > open a video.avi file with Thunar that has on its side a file called
> > video.srt or video.sub. It works also without problem with VLC and
> > Totem.
>
> Or from command line.
Here we go, I have the next:
.mplayer/gui.conf:22:sub_auto_load = "yes"
It works without problem with mplayer too (e.g. no gui).
So "this" is what you are looking for.
Cheez!
Mike
More information about the Thunar-dev
mailing list