Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Shell extensions in context menu are missing their icons #3834

Closed
5 tasks
Josh65-2201 opened this issue Mar 5, 2021 · 21 comments · Fixed by #14070
Closed
5 tasks

Bug: Shell extensions in context menu are missing their icons #3834

Josh65-2201 opened this issue Mar 5, 2021 · 21 comments · Fixed by #14070
Labels
help wanted Extra attention is needed

Comments

@Josh65-2201
Copy link
Member

Josh65-2201 commented Mar 5, 2021

Describe the bug
Custom program icons on the right click menu don't work.

Steps to reproduce

  • Install 7zip
  • Right click file or folder in Files and observe that 7zip doesn't have an icon
  • Right click file or folder in File Explorer and observe that 7zip does have an icon

Requirements

  • Icons should be consistent with File Explorer

Current missing ones

  • VLC
  • 7-zip
  • WinRAR
  • Google drive
  • Avast anti-virus

Desktop (please complete the following information):

  • OS Version: Windows 10 20H2 19042.804
  • App version: 1.3.0.0
@Josh65-2201 Josh65-2201 added the bug label Mar 5, 2021
@gave92
Copy link
Member

gave92 commented Mar 5, 2021

Could you check is this is the same as #3708?
Are icons shown in the first level of the context menu?

@gave92 gave92 added the needs - additional info Needs more information from the reporter label Mar 5, 2021
@Josh65-2201
Copy link
Member Author

Josh65-2201 commented Mar 5, 2021

Some are. The screen shots are from the first level of the context menu. 7-zip, Avast and macrium reflect icons don't show up.

@Josh65-2201
Copy link
Member Author

Josh65-2201 commented Jun 24, 2021

Still an issue with 1.5.46

image image

@Josh65-2201
Copy link
Member Author

Still an issue in 1.9.14. Updated non icon list: 7-zip, Backup and sync, Avast, Macrium reflect, Bit locker (except the c drive)

@gave92
Copy link
Member

gave92 commented Jul 26, 2021

I'm not sure we can fix this, all uwp file managers seem to have this issue on the same elements.

@Josh65-2201
Copy link
Member Author

Oh disappointing. Could it be fix using the full trust part of files or WinUI?

@Josh65-2201
Copy link
Member Author

Josh65-2201 commented Sep 8, 2021

Closing due to UWP limitations.

@PavelDobCZ23
Copy link

PavelDobCZ23 commented Jan 29, 2022

WinRar, Change File Extension and Windows Defender icons are missing for me.

Windows Explorer:
image
Files:
image

@yaira2
Copy link
Member

yaira2 commented Mar 8, 2022

@Josh-65 is this still an issue?

@Josh65-2201
Copy link
Member Author

yep

@PavelDobCZ23
Copy link

@Josh-65 is this still an issue?

yes

@Josh65-2201
Copy link
Member Author

Josh65-2201 commented Mar 8, 2022

Currently these, WinRAR based on the screenshot in above comment and avast anti virus (I dont have it anymore but was still missing the time it was uninstalled).
image

This is what they are in file exploer
image
image

@yaira2 yaira2 moved this to 🆕 New in Files task board Sep 8, 2022
@Josh65-2201 Josh65-2201 changed the title Right click icons don't all appear Bug: Right click icons don't all appear Sep 8, 2022
@Josh65-2201 Josh65-2201 moved this from 🆕 New to 📋 Planning stage in Files task board Sep 8, 2022
@yaira2 yaira2 changed the title Bug: Right click icons don't all appear Bug: Shell extensions in context menu are missing their icons Sep 8, 2022
@yaira2 yaira2 moved this from 📋 Planning stage to 🔖 Ready to build in Files task board Sep 8, 2022
@yaira2
Copy link
Member

yaira2 commented Feb 14, 2023

I tried debugging but the API isn't returning the icon, @Josh-65 is this an issue in Explorer++ as well?

@yaira2 yaira2 added the help wanted Extra attention is needed label Feb 14, 2023
@Josh65-2201
Copy link
Member Author

No icons there show the same as File explorer

@hishitetsu
Copy link
Member

Icons for items without submenus are displayed by MenuFlyoutItemWithImage class.
https://github.com/files-community/Files/blob/main/src/Files.App/UserControls/Menus/MenuFlyoutItemWithImage.xaml.cs

However, there is no MenuFlyoutSubItemWithImage class, so icons for items with submenus are not displayed.
MenuFlyoutItemWithImage extends MenuFlyoutItem, but MenuFlyoutSubItem is sealed and can't be extended.

@yaira2
Copy link
Member

yaira2 commented Nov 21, 2023

Is there a feature request on the WinUI repo?

@yaira2
Copy link
Member

yaira2 commented Nov 21, 2023

@hishitetsu looking into this further, it appears that we can set a BitmapIcon without extending the class.

@hishitetsu
Copy link
Member

@hishitetsu looking into this further, it appears that we can set a BitmapIcon without extending the class.

True, but I thought only static image resources could be used for BitmapIcon?

@hishitetsu
Copy link
Member

Yes, they are dynamically retrieved as HBITMAP when the shell extensions are loaded.

@yaira2
Copy link
Member

yaira2 commented Nov 22, 2023

By static, do you mean as opposed to changing the icon after the item is already added to the menu?

@hishitetsu
Copy link
Member

hishitetsu commented Nov 22, 2023

I mean resources that can be specified by URI. (like ms-appx://)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants