[Thunar-dev] Conditional "Open" command
Ben Ford
ben at kalifornia.com
Mon Nov 5 23:33:53 CET 2007
Mathias Brodala wrote:
> Hi.
>
> mmassonnet at gmail.com, 04.11.2007 20:36:
>
>> 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.
>>
>
> Yeah, I know this option. But it requires the subfile to have the exact same
> name as the videofile which isn’t always the case. This is why I was searching
> for a way to circumvent this to be able to just select video and subfile and
> open them.
>
I don't see this being too much to ask. Why would you name it differently?
> So either renaming the subfile or a custom script seem to be the solution for now.
>
>
> Regards, Mathias
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Thunar-dev mailing list
> Thunar-dev at xfce.org
> http://foo-projects.org/mailman/listinfo/thunar-dev
>
More information about the Thunar-dev
mailing list