Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

GLCH

macrumors newbie
Original poster
Jul 2, 2022
2
0
I have installed Catalina 10.15.7 and for some reason the icons for the ".tex" files to be opened with the app "TexMaker" disappeared. Namely what I see for a given file is a generic icon like this: https://i.stack.imgur.com/fRz5m.png

On the other hand, when I open /Applications/texmaker.app/Contents/Resources, the `texmaker.icns` is: TexMaker.icns

When I have a file ".bib" or ".sty", the icons are correctly displayed. These formats are given in the `.plist` of the TexMaker app copied below. I do not understand why the same does not happen with ".tex" whence the question:

How do I get the correct icons for the ".tex" files?

I tried to delete some cache files, kill the Finder, turn off/on my computer, go to safe mode, ... nothing seems to work!


________________________________

Here is a copy of the 'Info.plist' file of TexMaker:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>tex</string>
<string>TEX</string>
<string>bib</string>
<string>BIB</string>
<string>sty</string>
<string>STY</string>
<string>cls</string>
<string>CLS</string>
<string>mp</string>
<string>MP</string>
<string>asy</string>
<string>ASY</string>
<string>Rnw</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>texmaker.icns</string>
<key>CFBundleTypeName</key>
<string>TeX Document</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
</dict>
</array>
<key>CFBundleIconFile</key>
<string>texmaker.icns</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleExecutable</key>
<string>texmaker</string>
<key>CFBundleGetInfoString</key>
<string>Copyright (c) 2003-2021, Pascal Brachet</string>
<key>CFBundleIdentifier</key>
<string>texmaker</string>
<key>CFBundleName</key>
<string>texmaker</string>
<key>CFBundleShortVersionString</key>
<string>5.1.3</string>
<key>CFBundleVersion</key>
<string>5.1.3</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSHighResolutionCapable</key>
<string>True</string>
<key>NSSupportsAutomaticGraphicsSwitching</key>
<string>True</string>
</dict>
</plist>
 
Last edited:

Slartibart

macrumors 68040
Aug 19, 2020
3,146
2,821
.tex-files are still associated with TeXMaker as default program to open with? Does location of a .tex-file effect this, e.g. icon on external drive is „correct“, on the Finder desktop they show generic ones?
 

GLCH

macrumors newbie
Original poster
Jul 2, 2022
2
0
I connected an external drive and apparently now the icons are back... (I did not change anything). That's strange but nice to see.
 

Slartibart

macrumors 68040
Aug 19, 2020
3,146
2,821
I connected an external drive and apparently now the icons are back... (I did not change anything). That's strange but nice to see.
By any chance a newer version of TeXMaker is located on that external drive?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.