mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-27 09:05:54 +03:00
[GH-ISSUE #1396] Custom icons #1390
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#1390
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 !
Why this feature/change is important?
It's not, really....
@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
@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.
@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.