Sublime Forum

MacOS title bar icons are wrong if no extension [FIXED!]

#1

If I open a file with no extension, for some reason Sublime 3 uses my “Quicken2017” icon. What? Is this a MacOS issue or a Sublime issue?

0 Likes

#2

The icon in the title bar is drawn entirely by macOS. You’ll probably find the same icon in finder.

0 Likes

#3

@baschaaf: Nope, macOS Finder uses the correct “blank” icon in all size formats and all views.

0 Likes

#4

Finder on top, Sublime (latest) on bottom.

image

0 Likes

#5

We just set the representedFilename on the NSWindow. The rest is done by macOS.

0 Likes

#6

What’s the representedURL you construct? I can try to build a small app to track down WTF is going on with my weird machine…

0 Likes

#7

We don’t construct a URL, we just set the filename.

0 Likes

#8

Fixed it using these two commands:

% /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user

% killall Finder

Not sure what was going on, but my OS image is 13 years, so all those Time Machine ports to new machines must have accumulated an error.

Thanks for replying.

1 Like