[Thunar-dev] Conditional "Open" command
Jelle de Jong
jelledejong at powercraft.nl
Sun Nov 4 19:40:24 CET 2007
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.
>
>
> Regards, Mathias
You can use a custom action, just trigger on the video and sub file and
send the selected files to a bash script. Then build your command you
like and your done.
I don't see the problem, maybe i missed something.
Best regards,
Jelle
More information about the Thunar-dev
mailing list