Thank you, Peter.<br><br>I have the gtk interface installed as well as (-ia and -ik), so there is no problem there. It is the gtk interface that displays normally when playing a midi file from my home folder. 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.
<br><br>I will try your suggestion but need clarification on how to find the "helper" files in Firefox.<br><br>Cheers,<br>Andre<br><br><br><br><div><span class="gmail_quote">On 07/09/07, <b class="gmail_sendername">
Peter Garrett</b> <<a href="mailto:peter.garrett@optusnet.com.au">peter.garrett@optusnet.com.au</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, Sep 06, 2007 at 04:53:51PM +1000, Andre Mangan wrote:<br>> Hello to all Ubuntu users,<br>><br>> For general information:<br>><br>> After much research, testing and fiddling about, I have added System Monitor
<br>> to my top panel and in order to turn off any midi file accessed via Firefox<br>> that loads without the TiMidity GUI, I can access the icon for the System<br>> Monitor with ease and elect to stop (or kill) the process (yes, I know that
<br>> I could do it via the command line too).<br>><br>> I knew it was going to be easy, it just took a while to get there..<br><br><br>Apologies if this turns out to be a duplicate post - I seem to be having<br>
some email issues here with Sylpheed. Trying again with Mutt...<br><br>I thought this was an interesting problem, so I tried a few things...<br><br>I use the gtk interface for timidity . which is called as<br><br>timidity -ig
<br><br>If you don't have it, install " timidity-interfaces-extra' from the<br>universe repo.<br><br>Now, this was a bit of an adventure *cough* ...<br><br>I tried calling timidity from a little wrapper script thus:
<br><br>#!/bin/bash<br>timidity -ig "$@"<br><br>This was ... interesting... It not only refused to run, it shot the CPU<br>through the roof so badly that the whole system was wedged - I couldn't<br>even ssh in to kill it.
<br><br>After several attempts at variations, I hit on the problem, which is that<br>you need the * full path to timidity * for this to work in a script ,,,<br>First time I've come across something that requires the full path
<br>hard-coded like this, but there you are...<br><br>So, here is how to get Firefox to give you a gui when you play a midi on a<br>website: put this somewhere ( doesn't matter much where, I suggest ~/bin)<br><br>#---------------------------------------------------------------------#
<br>#!/bin/bash<br><br># Wrapper for timidity with firefox - $HOME/bin/timidity-wrapper<br># Uses the gtk interface from timidity-interfaces-extra<br># You can use the athena version with -ia<br># You *must* give the full /usr/bin/timidity path as below, or it will
<br># freeze everything ( I'm not kidding - I found out the hard way)<br><br>/usr/bin/timidity -ig "$@"<br><br>#---------------------------------------------------------------------#<br><br>I put this in /home/peter/bin/timidity-wrapper , and gave that path for
<br>timidity to Firefox in the dialogue that pops up in FF for "helper" apps .<br>You might need to alter yours if you have set "Always do... "<br>Of course the "script" needs to be executable
<br><br>chmod u+x ~/bin/timidity-wrapper ( if in ~/bin , of course )<br><br>This appears to work.<br><br>Tested at<br><br><a href="http://www.trachtman.org/ragtime/">http://www.trachtman.org/ragtime/</a><br><br>I think this is not a Firefox bug - I think it's a problem with timidity's
<br>way of finding the PATH, or perhaps the way it is called ( don't know).<br><br>Perhaps the galeon devs etc. call it the right way ? (In which case I<br>suppose it could be seen as a Firefox bug, although hard coding paths
<br>doesn't seem like something you should need to do ? ) .<br><br>Peter<br><br><br>--<br>ubuntu-au mailing list<br><a href="mailto:ubuntu-au@lists.ubuntu.com">ubuntu-au@lists.ubuntu.com</a><br><a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-au">
https://lists.ubuntu.com/mailman/listinfo/ubuntu-au</a><br></blockquote></div><br><br clear="all"><br>-- <br><a href="mailto:andremangan@gmail.com">andremangan@gmail.com</a>