[Thunar-dev] Conditional "Open" command

Mathias Brodala info at noctus.net
Mon Nov 5 21:50:39 CET 2007


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.

So either renaming the subfile or a custom script seem to be the solution for now.


Regards, Mathias

-- 
debian/rules

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://mail.xfce.org/pipermail/thunar-dev/attachments/20071105/4a58da51/attachment.pgp>


More information about the Thunar-dev mailing list