I have no new info. And I am pretty disappointed that MathWorks has no solution to this, nor to disabling the persistent question "Do you want the application “MATLAB_R2017a.app” to accept incoming network connections?". MathWorksWorks seems to have no answer to this, or other settings modification, which eliminates the question on subsequent app startups.
Matlab on El Capitan: .m files have blank icon
16 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Old and newly created .m files have a blank (generic document) icon. There is a proper icon (m.icns) in the app (at /Applications/MATLAB_R2016b.app/Contents/Resources/m.icns) and I can copy it and paste into the icon of any .m file, but I want to have it show up automatically. What's gone wrong/how do I fix this? El Capitan 10.11.6, Matlab R2016b.
Risposte (4)
Stephen Jue
il 21 Giu 2017
The icon cache for Mac OS X can be corrupted, leading to Finder not showing the proper icon for files. This is unknown if it is a bug specifically with MATLAB. Refer to the following link a discussion on the Apple forums for a similar issue:
https://discussions.apple.com/thread/6833053
Ankita Nargundkar
il 21 Giu 2017
Modificato: Ankita Nargundkar
il 21 Giu 2017
- Elaborate on what you mean by " copy it and paste into the icon of any .m file, but I want to have it show up automatically"?
- Is it a customized icon developed by you?
- Describe the workflow of your application with code snippets
Mason Law
il 24 Set 2017
I, too am having this issue and have not found a resolution yet. Any new information about this?
0 Commenti
Mohammad Abdolrahmani
il 24 Lug 2021
Hi
Just in case you have not yet solved this issue, I think I found the reason why matlab m files have blank icons. But fig and mat files have proper icons.
I am using Mac OS big sur. Matlab 2021a. I tried all the guidelines and instructions, all of them on the web, and none worked. As a last shot, I went to matlab app folder contents (/Applications/MATLAB_R2021a.app/Contents/Resources) and I found that in this folder, there are 3 icons called cdr.icns, m.icns, and mlapp.icns. I found one of my blank icon m files, and used command+I to open information window. I tried all the three icons above, and found that cdr and m icons are corrupted and not showing anything. I deleted the icons on the information window, and finally used mlapp.icns and it properly showed the m file icon.
So what I did was to copy/paste the mlapp.icns to desktop twice, and renamed the copies to m.icns and cdr.icns. Then I replaced the new m and cdr icons back to this folder (/Applications/MATLAB_R2021a.app/Contents/Resources). Then I used onyx (or any other apps that can reset the launch services) and reset the launch services. Rebooted the machine and wow, after several months of strugggle and search, I saw all the m files have their proper icons.
So, I think the problem was in the m.icns file itself, and replacing it with a correct icns file, should work.
Please let me know if this could solve your problem as well.
Bests
Mohammad
0 Commenti
Vedere anche
Categorie
Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!