mojira.dev
MC-248936

Minecraft icon on MacOS is not showing correct icon

The bug

If you are on a mac, open up minecraft 17w43b and look at the icon of the game. The icon will show text saying exec instead of showing the crafting table icon.

Additionally it has the word 'java' on the menu bar (the bar on the top) instead of Minecraft.

Related issues

MC-19050 Redstone comparator is when right click twinkle by hopper (activity comparator) MC-19842 Placing water from a bucket into flowing water. MC-121829 Not Showing Name or Logo on the macOS Dock or Menu Bar MC-125357 Crafting Table Icon Doesn't Appear When The Game Is Running MC-126206 Icon MC-133192 Minecraft displays generic .exec icon instead of the normal crafting table icon MC-134089 Java Icon MC-134264 OSX: Minecraft Game Icon/Icon Name Default Configuration MC-134450 Wrong icon on the Dock panel - Mac OS X MC-134684 Minecraft not showing correct icon with mac's toolbar MC-134711 When you first open Minecraft Java that is a crafting table pops up but since Minecraft 1.13 that is a black box that says exec MC-135350 1.13+ now showing Minecraft logo on macs dock MC-136155 Icon MC-137330 MacOS icon bug MC-137365 when Minecraft is open it shows a exec icon instead of the usual crafting table. MC-143290 The java icon does not show properly MC-149930 Craft table icon MC-156287 Minecraft Icon isn't showed MC-161736 Application Icon/Thumbnail wont appear above version 1.13 MC-202778 The Minecraft game window is called "java" and is not picked up as the game by Discord MC-212048 Icon uses old texture MC-225585 When you open Minecraft, instead of a crafting table icon, it's a black square that says exec. MC-232108 Incorrect Icon and application name MC-240287 Icon dock and name macOS MCL-19050 icon and name not displayed on macOs MCL-19842 no icon for game

Attachments

Comments

migrated
[media][media][media][media][media][media][media][media][media][media]
violine1101
migrated

In snapshot 17w47b no icon appears in the Dock at all, for the launcher or the game.

CreeperMagnet_

Still affects 18w05a, please update!

CreeperMagnet_

Still affects 18w09a.

CreeperMagnet_

Affects 1.13-pre6.

migrated

Affects 1.13 pre7.

migrated

I already marked pre7 as affected

migrated

Not fixed in release 1.13!? come on Mojang you said you were going to fix this.

migrated

Affects 1.13.1-pre1

migrated

Affects 1.13.1 release

ShaneBee

Still affects 1.13.2 Pre-1

 

migrated

yeah same. 1.13 and up

bugmancx

Affects 18w43c

bugmancx

Affects 19w05a

migrated

This is still an issue in 1.13.2, as well as the newest snapshot (19w09a) and it is also is affecting the ability for other programs to detect the game.

bugmancx

Affects 19w12a

migrated
[media]

 

EASY FIX:

 

To all thy Mac OS users who are sick and tired of seeing the black 'exec' Java icon, I have a solution if not already known, and this is even better than the boring crafting table.

 

STEPS TO FIX:

 

  1. Find a transparent icon of ANY Minecraft block you favor. I chose an Enchantment Table.

  2. Download the image in full resolution by right clicking the image and saving it to your downloads.

  3. Drag the image onto your Desktop and open the image in Preview.

  4. Once in Preview, go to Edit > Select All and then go back to Edit > Copy. *You MUST copy the image in this EXACT way or the whole process will not work*

  5. Open Minecraft and start the game.

  6. Once you have Minecraft open on the start screen (Singleplayer/Multiplayer/Realms screen), move to your dock and right click the black 'exec' icon.

  7. Go to Options > Show in Finder

  8. Once in Finder, you will see the black 'exec' screen is named "java."

  9. Right click the "java" 'exec' icon and click "Get Info."

  10. Click on the SMALL black 'exec' icon in the top left corner of the window and make sure it is highlighted blue.

  11. Type CMD+V (or paste the image using keyboard shortcuts) and it should appear in the window as the new icon.

  12. Close all the windows and finder windows and restart Minecraft.

  13. When it opens, cross your fingers and hope to God that it works and you should see your icon in your dock!

  14. Voila!!! ENJOY!

 

**This can be used with ANY icon that has a transparent background and is copied in the specific way listed above. You can have Bookshelves, Eye of Ender, Your own skin face! It is up to you, and the possibilities are endless. Have at it, and have fun!

 

From your fellow smelter and crafter,

 

RebelKnox

migrated

It affects 1.14 & 1.14.1.

Any news on a fix anytime in the near future? This has been a problem for so long and honestly it's a bit annoying the the icon for Terminal is what shows up when Minecraft is open. Can someone please explain to me what exactly the issue is?

migrated

It also affects both prereleases for 1.14.1 & both prereleases for 1.14.2.

migrated

It also affects 1.14.2 prereleases 3 & 4, as well as 1.14.2, and 1.14.1 prereleases 1 & 2.

migrated

Affects 1.14.3 prerelease 2

migrated

Still present in 1.14.4 prerelease 3.

ic22487

Still affects 1.15 Pre 2

migrated

Still affects 1.15 release. I think because of this issue is '-Xdock:icon' option is not there in the JSON.

migrated

still in 1.16 snapshot. does someone have the crafting table icon? (the one with the reflection, like 1.12 and below)

migrated

there is a easy fix, but but for now. go to ~Library/Application Support/minecraft/runtime/jre-x64/jre.bundle/Contents/Home/bin/java then press cmd+i. Then drag this file on the icon and. Voila, temporary fix. 

[media]
migrated

I just love how much they neglect macOS edition. COME ON Mojang

migrated

Affects 20w20b.

migrated

There is also an easy fix for the application name (which currently just says "java") (This is working as of Minecraft 1.16 in June of 2020). You will need to use the Terminal application for this.

  1. Open Terminal (which can be found in /Applications/Utilities/Terminal.app, or by searching "Terminal" in the spotlight search).

  2. Enter cd ~/Library/Application\ Support/minecraft/runtime/jre-x64/jre.bundle/Contents/Home/bin/, which will set the current directory of the Terminal, hence cd. (Be sure to press enter/return after inputting each command)

  3. Then enter mv java Minecraft, which will rename the "java" executable to "Minecraft" (or any name that you like, but you must be consistent between this step and the next one).

  4. Finally, enter ln -s Minecraft java, which will create a symbolic link between the old java executable (which has been renamed) and the place where the java executable used to be. Now when the Minecraft Launcher looks for the java executable, it will be redirected to the Minecraft executable, and the name in the dock will be updated.

If you want to run all of the commands, copy and paste the following into Terminal and press enter/return:

cd ~/Library/Application\ Support/minecraft/runtime/jre-x64/jre.bundle/Contents/Home/bin/;mv java Minecraft;ln -s Minecraft java

[Mod] markderickson

I can confirm for 2.2.629.

[Mod] markderickson

Confirmed for 2.2.740.

[Mod] markderickson

Can confirm in 2.2.1864.

migrated

As a proof of concept, the following changes on my install achieved desired name and icon improvements. Tested with Minecraft 21w11a under macOS Big Sur 11.2.3; see "Proof of Concept Demonstration 2021-03-23.png".

① Renamed "java" to "Minecraft Java" in "~/Library/Application Support/minecraft/runtime/jre-legacy/mac-os/jre-legacy/jre.bundle/Contents/Home/bin/".
② Added icon (resource fork data) to the "Minecraft Java" executable file. (Pasted icon via Get Info in the Finder.)
③ Updated the Java executable path used by the Minecraft launcher accordingly.



owlfalls35

Another fix is run 

 

ln -s ~/Library/Application\ Support/minecraft/runtime/jre-legacy/mac-os/jre-legacy/jre.bundle/Contents/Home/bin/java '/Applications/Minecraft.app/Contents/MacOS/Minecraft Java Edition'

 

then make a text file called "minecraft" in TextEdit with this text:

 

#!/bin/bash
'/Applications/Minecraft.app/Contents/MacOS/Minecraft Java Edition' "$@"

 

After typing it in, go to Format on the menu bar and click "Make Plain Text". if it is there. If it asks you to confirm, just confirm. If it is not there, it means it is already plain text.

When you save it, make sure you can see the Finder preview. Then, use Command+Shift+G to go to folder. Type in

 

/Applications/Minecraft.app/Contents/Resources

and click Go. Name It "minecraft" with no extension (uncheck the box that says "if no extension is provided, use ".txt") and then save it. Then, run

chmod +x /Applications/Minecraft.app/Contents/Resources/minecraft

Then, open up the Minecraft launcher, go to Installations an edit your installation. Set the java executable to the text file called "minecraft" that you created.

migrated

So frustrating because this used to work properly.
btw, this issue also causes problems with Discord App detection. Minecraft is detected as "java", and no longer verified by Discord. Again, this USED to work properly.

@Glitchatic wrote:
— Added icon (resource fork data) to the "Minecraft Java" executable file. (Pasted icon via Get Info in the Finder.

Where did you get the crafting table icon from?

nvm. got the icon from the OP attachments.

 

owlfalls35

Specifying -Xdock:icon=/path/to/icon.png in your JVM arguments used to let you use a custom icon. Now, it is still the exec icon even with the icon argument. The -Xdock:name="Your custom name" argument also has no effect.

ic22487

can confirm in 2.2.5518

migrated

Also confirming on 2.2.5518. Seems like an easy enough fix.

 

ic22487

Confirmed in 2.2.7205

migrated

Hello, yes, I'm not interested in screwing around with Terminal, renaming executables and creating links and downloading png files from Google Images. I am interested in the software I paid for working correctly, as it used to, before Microsoft broke it.

Currently this is preventing me from targeting Minecraft.app for app-specific behavior in Logi Options, because Minecraft.app is now... just the launcher. Useless.

I quietly seethed while, little by little, quality of life fell to the wayside. It's Microsoft, what do you expect, at least it isn't microtransactions and mandatory 365 accounts and excessive cloud logging leading to vuln- oh wait.  :^)  So the icon is broken. Whatever. I can still play.

But now, due to the root cause of the icon issue, I cannot actually interact with Minecraft.app from other apps anymore, because it is broken in a ridiculous way, using nonstandard behavior, that no other app exhibits, no, not even Java apps, thank you. It used to work, now it doesn't, there's no QC because they don't care about other platforms. 

Anyway. While we're vomiting into /dev/null. Confirmed. 

migrated

Yes Goot, you are correct. This has been a bug for 4 years, I'd be surprised if we saw anything change now. I have a list of MacOS specific bugs that's all on here and they never get any attention apart from the amazing people of the community who keep updating them as newer versions gets affected. Some of them make the game unplayable on certain Macs, and yet no attention. It's sad. 1.12 was the last good release on MacOS.

migrated

As far as I can tell this is a Minecraft game issue, not specifically the launcher per say, as the same behaviour occurs when launching a game from the MultiMC Client.

[Mod] markderickson

@unknown moved this report from the Minecraft: Java Edition project to the Minecraft Launcher project, so it must be something that will need to be fixed on the launcher side. Additionally, the report has been assigned an ADO number, meaning the launcher developers are tracking the issue internally. 🙂

migrated

Hopefully this is fixed soon … together with the critical bug which leads the Minecraft Launcher to crash immediately after launch and an updated version for Apple Silicon…

Would be an amazing Christmas miracle!

migrated

Yo guys I finally found a solution to this issue, just watch this video and you'll get what we all wanted : https://www.youtube.com/watch?v=Zvvw-TeHVpE

This video mainly shows how to fix the scrolling locked while sneaking, but shows at the same time how to recover the crafting table icon of the game ! 

Hopefully this will work for everyone, I'm on macOS Big Sur and it worked perfectly.

migrated

Just a heads up, this seems to effect Linux too. This seems to be an issue with all versions between 1.13 and 1.18.1 

System Information (Provided by neofetch) 

[media]

1.13 

[media]

1.18.1

[media]

1.12.2 (Expected behaviour)

[media]

Additional information:
Launcher was installed via the Official AUR package provided by Mojang 
I've experienced this same bug on Linux Mint 20.2 and on my Laptop (i5 8th gen integrated graphics) 

migrated

(Unassigned)

Confirmed

icon, macOS

1.18.2

22w11a

Retrieved