[GH-ISSUE #1396] Custom icons #1390

Open
opened 2026-03-03 19:51:04 +03:00 by kerem · 3 comments
Owner

Originally created by @maximebories on GitHub (Oct 14, 2022).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1396

Description

Hi ! This is definitely not a priority.... It's cool that you offer to choose an icon in the configuration panel, but because of that it makes it impossible to choose an icon of our own via the usual Apple mechanism ou the fileicon binary available on brew. I am currently making a set of icons so I am hopping you have enough time someday for this shallow feature. Thanks !

image

Why this feature/change is important?

It's not, really....

Originally created by @maximebories on GitHub (Oct 14, 2022). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1396 ## Description Hi ! This is definitely not a priority.... It's cool that you offer to choose an icon in the configuration panel, but because of that it makes it impossible to choose an icon of our own via the usual Apple mechanism ou the fileicon binary available on brew. I am currently making a set of icons so I am hopping you have enough time someday for this shallow feature. Thanks ! ![image](https://user-images.githubusercontent.com/30550722/195955080-2da7a8de-4840-4dc9-9589-7f83bf6182e2.png) ## Why this feature/change is important? It's not, really....
Author
Owner

@NghiaTranUIT commented on GitHub (Oct 15, 2022):

I'm not sure if it's technically possible 🤔

Proxyman is using NSDockTilePlugin to handle the alternative App Icons, but the icon must be bundled inside the plugin. Otherwise, it doesn't work.

Do you know any Mac apps that can do it? I'd like to check it out

<!-- gh-comment-id:1279642003 --> @NghiaTranUIT commented on GitHub (Oct 15, 2022): I'm not sure if it's technically possible 🤔 Proxyman is using [NSDockTilePlugin](https://developer.apple.com/documentation/appkit/nsdocktileplugin) to handle the alternative App Icons, but the icon must be bundled inside the plugin. Otherwise, it doesn't work. Do you know any Mac apps that can do it? I'd like to check it out
Author
Owner

@maximebories commented on GitHub (Oct 15, 2022):

Sadly no, but with a Java application, if I put a custom icon, the default icon is displayed as long as it is running. I'm guessing they invoke NSDockTilePlugIn as well even if it's not needed. I find it very curious it goes back to the customized icon when closing the app...

There is indeed another way to change the icon be writing directly the icon graphic binary to the special attribute of a hidden file at the root of the app bundle (only if the icon is customized). For example you can view the icon binary with:

$ cd /Application/myApp.app
$ xattr -p com.apple.ResourceFork Icon$'\r'

Or you can use xattred which offer a GUI.

This technique is used by the tool fileicon (https://github.com/mklement0/fileicon) Anyway it would probably be superseded by NSDockTilePlugIn and rewriting code just to change the app icon is not worth the hassle.

<!-- gh-comment-id:1279675455 --> @maximebories commented on GitHub (Oct 15, 2022): Sadly no, but with a Java application, if I put a custom icon, the default icon is displayed as long as it is running. I'm guessing they invoke NSDockTilePlugIn as well even if it's not needed. I find it very curious it goes back to the customized icon when closing the app... There is indeed another way to change the icon be writing directly the icon graphic binary to the special attribute of a hidden file at the root of the app bundle (only if the icon is customized). For example you can view the icon binary with: $ cd /Application/myApp.app $ xattr -p com.apple.ResourceFork Icon$'\r' Or you can use xattred which offer a GUI. This technique is used by the tool fileicon (https://github.com/mklement0/fileicon) Anyway it would probably be superseded by NSDockTilePlugIn and rewriting code just to change the app icon is not worth the hassle.
Author
Owner

@NghiaTranUIT commented on GitHub (Oct 17, 2022):

Using NSDockTilePlugIn would maintain the alternative app icon even though the app is closed.

If not, the icon will revert back to the original App Icon, and it looks bad.

<!-- gh-comment-id:1280151487 --> @NghiaTranUIT commented on GitHub (Oct 17, 2022): Using NSDockTilePlugIn would maintain the alternative app icon even though the app is closed. If not, the icon will revert back to the original App Icon, and it looks bad.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Proxyman#1390
No description provided.