<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Associating the MATLAB Editor with .m files in GNOME</title>
	<atom:link href="http://www.walkingrandomly.com/?feed=rss2&#038;p=300" rel="self" type="application/rss+xml" />
	<link>http://www.walkingrandomly.com/?p=300</link>
	<description>Because it's more fun than getting there in a straight line.</description>
	<lastBuildDate>Thu, 09 Sep 2010 09:21:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: David</title>
		<link>http://www.walkingrandomly.com/?p=300&#038;cpage=1#comment-17241</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 09 Nov 2009 15:16:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.walkingrandomly.com/?p=300#comment-17241</guid>
		<description>Hi Mike. Nice blog!

I&#039;ve a little problem with *.m files in Ubuntu 9.10. I&#039;ve installed Mathematica 7 and now extensions *.nb, *.nbp and *.m are opened with Mathematica, because they are &quot;Mathematica Notebook&quot; type. I want to open *.m to with gedit (I don&#039;t use matlab, I use octave), however if I change the properties in nautilus then all &quot;Mathematica Notebook&quot; extensions are changed and the *.nb files are now opened with gedit instead of Mathematica. 

Can you help me? I want to open the *.nb with Mathematica and *.m with gedit, how can I break the link between *.nb and *.m files?

Sorry for my English, I&#039;m Spanish.</description>
		<content:encoded><![CDATA[<p>Hi Mike. Nice blog!</p>
<p>I&#8217;ve a little problem with *.m files in Ubuntu 9.10. I&#8217;ve installed Mathematica 7 and now extensions *.nb, *.nbp and *.m are opened with Mathematica, because they are &#8220;Mathematica Notebook&#8221; type. I want to open *.m to with gedit (I don&#8217;t use matlab, I use octave), however if I change the properties in nautilus then all &#8220;Mathematica Notebook&#8221; extensions are changed and the *.nb files are now opened with gedit instead of Mathematica. </p>
<p>Can you help me? I want to open the *.nb with Mathematica and *.m with gedit, how can I break the link between *.nb and *.m files?</p>
<p>Sorry for my English, I&#8217;m Spanish.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wayne</title>
		<link>http://www.walkingrandomly.com/?p=300&#038;cpage=1#comment-8225</link>
		<dc:creator>wayne</dc:creator>
		<pubDate>Wed, 19 Nov 2008 12:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.walkingrandomly.com/?p=300#comment-8225</guid>
		<description>it worked,
sorry i forgot to tell you i taught myself linux,so in the previous post,i did not notice that the dot&quot;.&quot; is used to hide files.

 now i just deleted the whole files &quot;mimeapps.list&quot; and &quot;mathematica&quot;,then &quot;open with other application&quot;,simply put &quot;mathematica&quot;,because on my machine, &quot;mathematica&quot; is in one of my $PATH as the default.also worked.

in fact,what i really desire is to let all .nb file have a spikey icon but not the seemingly text ico, it seems that in my ubuntu8.10 OS, all.nb files are previewed exactly the same with the .doc ,.chm files.
can i expect them to behave the same as they do in windows OS ? :)

thank you for taking time for my concern.</description>
		<content:encoded><![CDATA[<p>it worked,<br />
sorry i forgot to tell you i taught myself linux,so in the previous post,i did not notice that the dot&#8221;.&#8221; is used to hide files.</p>
<p> now i just deleted the whole files &#8220;mimeapps.list&#8221; and &#8220;mathematica&#8221;,then &#8220;open with other application&#8221;,simply put &#8220;mathematica&#8221;,because on my machine, &#8220;mathematica&#8221; is in one of my $PATH as the default.also worked.</p>
<p>in fact,what i really desire is to let all .nb file have a spikey icon but not the seemingly text ico, it seems that in my ubuntu8.10 OS, all.nb files are previewed exactly the same with the .doc ,.chm files.<br />
can i expect them to behave the same as they do in windows OS ? <img src='http://www.walkingrandomly.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>thank you for taking time for my concern.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Croucher</title>
		<link>http://www.walkingrandomly.com/?p=300&#038;cpage=1#comment-8217</link>
		<dc:creator>Mike Croucher</dc:creator>
		<pubDate>Tue, 18 Nov 2008 14:25:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.walkingrandomly.com/?p=300#comment-8217</guid>
		<description>Hi Wayne

Sorry - I assumed that your terminal would open inside your home directory so the cd command I posted is relative to that.  On my machine my home directory is /home/mike so the full path to mimeapps.list is 

/home/mike/.local/share/applications/mimeapps.list

of course yours will be relative to your home directory (also note that the correct directory is .local NOT local)

Let me know if that helps.

As for mathematica - it should just work if you simply put the full path to mathematica in the &#039;open with&#039; box.   For example on my machine I simply put

/usr/local/bin/mathematica

The &quot;edit %f&quot; applies ONLY to MATLAB and not to any other application.  
Hope this helps</description>
		<content:encoded><![CDATA[<p>Hi Wayne</p>
<p>Sorry &#8211; I assumed that your terminal would open inside your home directory so the cd command I posted is relative to that.  On my machine my home directory is /home/mike so the full path to mimeapps.list is </p>
<p>/home/mike/.local/share/applications/mimeapps.list</p>
<p>of course yours will be relative to your home directory (also note that the correct directory is .local NOT local)</p>
<p>Let me know if that helps.</p>
<p>As for mathematica &#8211; it should just work if you simply put the full path to mathematica in the &#8216;open with&#8217; box.   For example on my machine I simply put</p>
<p>/usr/local/bin/mathematica</p>
<p>The &#8220;edit %f&#8221; applies ONLY to MATLAB and not to any other application.<br />
Hope this helps</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wayne</title>
		<link>http://www.walkingrandomly.com/?p=300&#038;cpage=1#comment-8215</link>
		<dc:creator>wayne</dc:creator>
		<pubDate>Tue, 18 Nov 2008 14:09:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.walkingrandomly.com/?p=300#comment-8215</guid>
		<description>Hi,Mike

Wayne coming again,

i did curiously as you told to associate .nb files with Mathematica , but Mathematica started with a &quot;why the beep?&quot; messagebox, and the result is an empty notebook , :(.
the error message is 
&quot;Mathematica was unable to open the file edit&#039;/home/tod/PursuitCurves-source.nb&#039;.You may have a problem with your disk,or if you are using a fileserver,someone else may be using the file.Error code=-43.&quot;

where problem lies?

and by the way ,i couldnt find mimeapps.list in /usr/local/share/applications/ to get rid of the invalid
userapp** texts. 
did i missed something? thank you , hope My second language had made myself understood</description>
		<content:encoded><![CDATA[<p>Hi,Mike</p>
<p>Wayne coming again,</p>
<p>i did curiously as you told to associate .nb files with Mathematica , but Mathematica started with a &#8220;why the beep?&#8221; messagebox, and the result is an empty notebook , <img src='http://www.walkingrandomly.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> .<br />
the error message is<br />
&#8220;Mathematica was unable to open the file edit&#8217;/home/tod/PursuitCurves-source.nb&#8217;.You may have a problem with your disk,or if you are using a fileserver,someone else may be using the file.Error code=-43.&#8221;</p>
<p>where problem lies?</p>
<p>and by the way ,i couldnt find mimeapps.list in /usr/local/share/applications/ to get rid of the invalid<br />
userapp** texts.<br />
did i missed something? thank you , hope My second language had made myself understood</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Croucher</title>
		<link>http://www.walkingrandomly.com/?p=300&#038;cpage=1#comment-8152</link>
		<dc:creator>Mike Croucher</dc:creator>
		<pubDate>Sat, 15 Nov 2008 14:53:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.walkingrandomly.com/?p=300#comment-8152</guid>
		<description>Hi Paul

The reason you had to put in /opt/matlab/bin/matlab rather than just matlab is because you don&#039;t have matlab included in your path for some resason.

To  remove the old entries try the following:

Open a terminal and type

cd .local/share/applications/
ls

From the &#039;ls&#039; command you should see several files that look something like  userapp-matlab-HL7NKU.desktop although the exact name may vary.  Delete all of the userapp-matlab* files

Now open a file called mimeapps.list using gedit:

gedit ./mimeapps.list

Delete the line that starts &#039;text/x-matlab=&#039;, save the file and close gedit.  

This procedure will remove all associations with MATLAB so you will need to redo the steps I talked about in my original post.</description>
		<content:encoded><![CDATA[<p>Hi Paul</p>
<p>The reason you had to put in /opt/matlab/bin/matlab rather than just matlab is because you don&#8217;t have matlab included in your path for some resason.</p>
<p>To  remove the old entries try the following:</p>
<p>Open a terminal and type</p>
<p>cd .local/share/applications/<br />
ls</p>
<p>From the &#8216;ls&#8217; command you should see several files that look something like  userapp-matlab-HL7NKU.desktop although the exact name may vary.  Delete all of the userapp-matlab* files</p>
<p>Now open a file called mimeapps.list using gedit:</p>
<p>gedit ./mimeapps.list</p>
<p>Delete the line that starts &#8216;text/x-matlab=&#8217;, save the file and close gedit.  </p>
<p>This procedure will remove all associations with MATLAB so you will need to redo the steps I talked about in my original post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paul</title>
		<link>http://www.walkingrandomly.com/?p=300&#038;cpage=1#comment-8129</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Fri, 14 Nov 2008 01:17:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.walkingrandomly.com/?p=300#comment-8129</guid>
		<description>I forgot to ask in my previous post:

how do I remove the old &quot;matlab&quot; entries from the &quot;open with&quot; menu?  These are attempts that didn&#039;t work but the link is still there.  Now I have 4 entries in the &quot;open with&quot; called &quot;matlab&quot; but only one of them works.</description>
		<content:encoded><![CDATA[<p>I forgot to ask in my previous post:</p>
<p>how do I remove the old &#8220;matlab&#8221; entries from the &#8220;open with&#8221; menu?  These are attempts that didn&#8217;t work but the link is still there.  Now I have 4 entries in the &#8220;open with&#8221; called &#8220;matlab&#8221; but only one of them works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paul</title>
		<link>http://www.walkingrandomly.com/?p=300&#038;cpage=1#comment-8128</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Fri, 14 Nov 2008 01:11:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.walkingrandomly.com/?p=300#comment-8128</guid>
		<description>Hi,

I was the person with the original question on the Matlab users forum.  

The above solution works just great.  

However, I had to change 
matlab 
to 
/opt/matlab/bin/matlab 
which is where my executable was located/

Now if I can only understand all the bits and pieces of the command!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I was the person with the original question on the Matlab users forum.  </p>
<p>The above solution works just great.  </p>
<p>However, I had to change<br />
matlab<br />
to<br />
/opt/matlab/bin/matlab<br />
which is where my executable was located/</p>
<p>Now if I can only understand all the bits and pieces of the command!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
