Here are the steps you asked for: 0. write a simple M file like the following "test.m" _______________________ function p=prova(q) p=q; endfunction _______________________
1. double click on it, gedit should regularly open it. (<-- this is very important). Then close gedit. 2. from nautilus, right click on the same file, then Properties/OpenWith/Add/use a custom command, and simply type vim ("vi improved editor"). Confirm by clicking on Add to save changes and then leave the "Properties" dialog by clicking on [close]. 3. Now double click on the file again. You expect that nautilus launches vim this time. If your system behaves like mine, you will get the "stupid" warning. 4. If you cancel back the settings that you have modified from the Propertied dialog, everything works well back again. My questions: - why does Nautilus trigger the famous warning for "Vim" and not for "gedit"? The file name and content did not change at all! - what is special in gedit, that makes Nautilus not complain, and what is wrong with Vim? (try setting any other editor than Vim as a default, and you will always get the "stupid warning"; originally I found the problem after installing "SciTe") My impression is that the problem is in that "something" that Nautilus does or modifies(it creates .xml files, isn't it?) in order to set a new application as a default, and this "something" is not operating well especially when the implied extension (.m in our case) corresponds to many different mime types (Objective C and Matlab/Octave txt files). Probably these .xml files (or whatever) are written in such a way that they only work if the file content is of one, preferred, mime type. I have the impression that in the .m case the favourite mime type could be the Obejective-C one, but I could not test this because I don't know how to write a single line of that language (sorry). Hope this helps to go further, and thank you all very much. Lurix. PS. my uname -a: Linux axerino 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007 i686 GNU/Linux -- Nautilus gives incorrect warning when opening files of .m extension https://bugs.launchpad.net/bugs/112228 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs