[GH-ISSUE #110] Custom icon not visible in main contextual menu #109

Closed
opened 2026-02-25 21:32:40 +03:00 by kerem · 9 comments
Owner

Originally created by @Dundes on GitHub (Feb 22, 2020).
Original GitHub issue: https://github.com/clechasseur/pathcopycopy/issues/110

Originally assigned to: @clechasseur on GitHub.

simply... having an icon close to the main feature used, right clicking on a file, it helps to quickly put in evidence this one; I'd love this feature
Thanks

IMG_20200222_184102

Originally created by @Dundes on GitHub (Feb 22, 2020). Original GitHub issue: https://github.com/clechasseur/pathcopycopy/issues/110 Originally assigned to: @clechasseur on GitHub. simply... having an icon close to the main feature used, right clicking on a file, it helps to quickly put in evidence this one; I'd love this feature Thanks ![IMG_20200222_184102](https://user-images.githubusercontent.com/61359194/75096767-1e9f2d80-55a3-11ea-96d2-43e469081d08.png)
kerem 2026-02-25 21:32:40 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@clechasseur commented on GitHub (Feb 22, 2020):

You can already do this with the Settings application. In the Commands tab, click in the Icon column next to the command you want and set an icon file. You can also Shift-click to use the default icon.

explorer_43pcdGKICT

<!-- gh-comment-id:590008407 --> @clechasseur commented on GitHub (Feb 22, 2020): You can already do this with the Settings application. In the _Commands_ tab, click in the _Icon_ column next to the command you want and set an icon file. You can also Shift-click to use the default icon. ![explorer_43pcdGKICT](https://user-images.githubusercontent.com/1435551/75100794-a2a3e600-55a0-11ea-9d8e-fc35ab430380.png)
Author
Owner

@Dundes commented on GitHub (Feb 23, 2020):

thank you for quick answer Charles
Icon is visible next into submenu, but not the first level menu, not directly right clicking a file or a folder

<!-- gh-comment-id:590045547 --> @Dundes commented on GitHub (Feb 23, 2020): thank you for quick answer Charles Icon is visible next into submenu, but not the first level menu, not directly right clicking a file or a folder
Author
Owner

@clechasseur commented on GitHub (Feb 23, 2020):

Hmm, that's strange, it should show up in both menus, sounds like a bug. I'll look into it.

<!-- gh-comment-id:590076859 --> @clechasseur commented on GitHub (Feb 23, 2020): Hmm, that's strange, it should show up in both menus, sounds like a bug. I'll look into it.
Author
Owner

@clechasseur commented on GitHub (Feb 23, 2020):

I checked the code and found the issue. It only happens when the only command selected in the main menu is "Copy Long Path".

I'll leave this open so I can fix it. In the meantime, there's a kind of workaround. Using regedit, navigate to the HKEY_CURRENT_USER\Software\clechasseur\PathCopyCopy key and create the following value:

Name: UseIconForDefaultPlugin
Type: REG_DWORD
Value: 1

That should instruct Path Copy Copy to display the default icon for any command in the main menu. This setting is not editable via the Settings application, so to turn it off you need to go back and delete the value.

<!-- gh-comment-id:590083043 --> @clechasseur commented on GitHub (Feb 23, 2020): I checked the code and found the issue. It only happens when the only command selected in the main menu is "Copy Long Path". I'll leave this open so I can fix it. In the meantime, there's a kind of workaround. Using `regedit`, navigate to the `HKEY_CURRENT_USER\Software\clechasseur\PathCopyCopy` key and create the following value: Name: UseIconForDefaultPlugin Type: REG_DWORD Value: 1 That should instruct Path Copy Copy to display the default icon for any command in the main menu. This setting is not editable via the Settings application, so to turn it off you need to go back and delete the value.
Author
Owner

@Dundes commented on GitHub (Feb 24, 2020):

Thanks for the workaround; I checked, the solution works, but the icon shown is not the one chosen but the default one; thanks again :-)

IMG_20200224_201411

<!-- gh-comment-id:590500748 --> @Dundes commented on GitHub (Feb 24, 2020): Thanks for the workaround; I checked, the solution works, but the icon shown is not the one chosen but the default one; thanks again :-) ![IMG_20200224_201411](https://user-images.githubusercontent.com/61359194/75183212-54c6e380-5742-11ea-8ab2-704ff49b2dcc.png)
Author
Owner

@clechasseur commented on GitHub (Feb 24, 2020):

Thanks for the workaround; I checked, the solution works, but the icon shown is not the one chosen but the default one; thanks again :-)

Yeah, it's not ideal. There's another trick I thought of, though:

  1. Create a new custom command based on "Copy Long Path".
  2. Assign an icon to it.
  3. Select that command instead of "Copy Long Path" in the main menu.

That should give you the icon you want.

<!-- gh-comment-id:590502175 --> @clechasseur commented on GitHub (Feb 24, 2020): > Thanks for the workaround; I checked, the solution works, but the icon shown is not the one chosen but the default one; thanks again :-) Yeah, it's not ideal. There's another trick I thought of, though: 1. Create a new custom command based on "Copy Long Path". 2. Assign an icon to it. 3. Select that command instead of "Copy Long Path" in the main menu. That should give you the icon you want.
Author
Owner

@Dundes commented on GitHub (Feb 24, 2020):

sorry, I do not want to trouble, trick does not seems to work... icon still the same, but I can wait fix in the next rel...

my best compliments for the very useful tool

IMG_20200224_215452

<!-- gh-comment-id:590546434 --> @Dundes commented on GitHub (Feb 24, 2020): sorry, I do not want to trouble, trick does not seems to work... icon still the same, but I can wait fix in the next rel... my best compliments for the very useful tool ![IMG_20200224_215452](https://user-images.githubusercontent.com/61359194/75190703-2dc3de00-5751-11ea-869f-fb239e19f892.png)
Author
Owner

@clechasseur commented on GitHub (Feb 24, 2020):

Sorry that didn't work. I'm out of ideas then, you will have to wait for a fix 😞

<!-- gh-comment-id:590546749 --> @clechasseur commented on GitHub (Feb 24, 2020): Sorry that didn't work. I'm out of ideas then, you will have to wait for a fix 😞
Author
Owner

@clechasseur commented on GitHub (Jun 28, 2020):

This issue has been fixed and will be available in the next version.

<!-- gh-comment-id:650669648 --> @clechasseur commented on GitHub (Jun 28, 2020): This issue has been fixed and will be available in the next version.
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/pathcopycopy#109
No description provided.