Thank you, Peter.<br><br>I have the gtk interface installed as well as (-ia and -ik), so there is no problem there.&nbsp; It is the gtk interface that displays normally when playing a midi file from my home folder.&nbsp; 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 &quot;helper&quot; 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> &lt;<a href="mailto:peter.garrett@optusnet.com.au">peter.garrett@optusnet.com.au</a>&gt; 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>&gt; Hello to all Ubuntu users,<br>&gt;<br>&gt; For general information:<br>&gt;<br>&gt; After much research, testing and fiddling about, I have added System Monitor
<br>&gt; to my top panel and in order to turn off any midi file accessed via Firefox<br>&gt; that loads without the TiMidity GUI, I can access the icon for the System<br>&gt; Monitor with ease and elect to stop (or kill) the process (yes, I know that
<br>&gt; I could do it via the command line too).<br>&gt;<br>&gt; 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&#39;t have it, install &quot; timidity-interfaces-extra&#39; 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 &quot;$@&quot;<br><br>This was ... interesting...&nbsp;&nbsp;It not only refused to run, it shot the CPU<br>through the roof so badly that the whole system was wedged - I couldn&#39;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&#39;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&#39;t matter much where, I suggest ~/bin)<br><br>#---------------------------------------------------------------------#
<br>#!/bin/bash<br><br># Wrapper for timidity with firefox&nbsp;&nbsp;- $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&#39;m not kidding - I found out the hard way)<br><br>/usr/bin/timidity -ig&nbsp;&nbsp;&quot;$@&quot;<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 &quot;helper&quot; apps .<br>You might need to alter yours if you have set &quot;Always do... &quot;<br>Of course the &quot;script&quot; needs to be executable
<br><br>chmod u+x ~/bin/timidity-wrapper&nbsp;&nbsp;&nbsp;&nbsp;( 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&#39;s a problem with timidity&#39;s
<br>way of finding the PATH, or perhaps the way it is called ( don&#39;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&#39;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>