[Thunar-dev] Conditional "Open" command

Mathias Brodala info at noctus.net
Sun Nov 4 19:26:34 CET 2007


Hi Erik.

Erik Harrison, 04.11.2007 18:58:
> On 11/4/07, Mathias Brodala <info at noctus.net> wrote:
>> [ Getting Thunar to add command options depending on the files selected. ]
>>
> 
> Hmmm. I've thought about it for a few minutes, and I can't work out a
> reasonable way to make this work from the UI of thunar. For instance,
> in this case, Thunar would have to know which files to put in what
> parts of the command. If Thunar was smart it could do it by MIME type,
> but building that into the UI might be complicated.

Since it has to be configurable, yeah. I agree that this probably won’t be a
good solution.

> It could do it by
> the order in which the objects are selected, but that's damn finicky.

Yep.

> There is the possibility of extending the .desktop files so that an
> app could say "Hey, I open multiple files of mixed MIME type in a
> special way, if MIME types are foo, bar and baz, then use these
> command parameteres". Dunno.

Sounds better.

> However, in the short term you could do something like, if your
> subtitle files are named consistently, have Thunar give you a "Open
> with subtitles" whenever JUST a video file is selected. Then the
> custom action could figure out the subtitle filename automagically.

Yeah, I guess I’ll have to do that 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/20071104/0fa10aa1/attachment.pgp>


More information about the Thunar-dev mailing list