GUI wrapper for timidity -ig with Firefox

Andre Mangan andremangan at gmail.com
Fri Sep 7 03:36:36 BST 2007


I am using Firefox version 1.5.0.12.which does not seem have a selector for
file types (at least not one I can find).  Will try version 2 later today.

Cheers,
Andre


On 07/09/07, Peter Garrett <peter.garrett at optusnet.com.au> wrote:
>
> On Fri, 7 Sep 2007 11:51:43 +1000
> "Andre Mangan" <andremangan at gmail.com> wrote:
> [snip]
> >  Also, if accessing a midi file from the
> > web via Firefox, the first time it is accessed, there is no GUI but the
> > second and subsequent times there is a GUI and the file can be
> terminated.
>
> How very odd :)
> >
> > I will try your suggestion but need clarification on how to find the
> > "helper" files in Firefox.
> >
>
> Edit - Preferences - Content - File Types - Manage
> Change the setting for "MID" to the path for the wrapper, for instance
> /home/andre/bin/timidity-wrapper   or whatever you name the file.
>
> I noticed the first run is "glitchy" at the beginning here - presumably
> because the file needs to download fully to /tmp . This seems to fix that
> issue:
>
>
> #------------------------------------------------------------------------------#
> #!/bin/bash
>
> #wrapper for timidity
> # Uses the gtk interface from timidity-interfaces-extra
> # You can use the athena version with -ia
> # You *must* give the full /usr/bin/timidity path or it will hang and
> # freeze everything ( I'm not kidding - I found out the hard way)
>
> TMP="$@"                  #This is where FF puts the midi file
>
> sleep 1                       # Give it a moment to download properly
>                                   #( make this sleep longer if needed )
>
> /usr/bin/timidity -ig "$TMP"
>
>
> #-------------------------------------------------------------------------------#
>
> Peter
>



-- 
andremangan at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-au/attachments/20070907/89632ae9/attachment.htm 


More information about the ubuntu-au mailing list