darktrojan / openwith

Open With add-on for Firefox
https://addons.mozilla.org/addon/open-with/
412 stars 71 forks source link

Chromium icon not showing up #108

Open rmlrml opened 8 years ago

rmlrml commented 8 years ago

Debian GNU/Linux stretch/sid x86_64 Firefox 46.0.1 Open With 6.7

Chromium icon is not visible in any Open With location: Open With options or Open With menus, whether clicking the toolbar button or right-clicking on a tab or a link within page. It works fine, just no icon:

screenshot

screenshot

screenshot

The problem started happening only in the last couple months, but I'm sorry I didn't catch which update to Open With or Firefox may have caused it. I just noticed the problem one day and haven't gotten around to dealing with it until now.

It's only the Chromium icon that's affected, no other applications' icons.

The Chromium icon shows up fine in my system menus, task manager, and file manager. It's only Open With that doesn't seem to be finding it. I loaded Chromium into Open With by selecting the /usr/share/applications/chromium.desktop file, which sets Icon=chromium.png. My system has chromium.png in these locations:

/usr/share/icons/Faenza/apps/16/chromium.png /usr/share/icons/Faenza/apps/22/chromium.png /usr/share/icons/Faenza/apps/24/chromium.png /usr/share/icons/Faenza/apps/32/chromium.png /usr/share/icons/Faenza/apps/48/chromium.png /usr/share/icons/Faenza/apps/64/chromium.png /usr/share/icons/Faenza/apps/96/chromium.png /usr/share/icons/hicolor/22x22/apps/chromium.png /usr/share/icons/hicolor/24x24/apps/chromium.png /usr/share/icons/hicolor/48x48/apps/chromium.png /usr/share/icons/hicolor/64x64/apps/chromium.png /usr/share/icons/hicolor/128x128/apps/chromium.png /usr/share/icons/hicolor/256x256/apps/chromium.png

and there's also

/usr/share/icons/Faenza/apps/scalable/chromium.svg /usr/share/icons/hicolor/32x32/apps/chromium.xpm

along with other icons named chromium-browser.png/svg and chromium-browser2.png/svg in the Faenza directory.

Logging output to Browser Console is enabled. I opened up the Browser Console but I don't really understand what I'm looking at in there. I tried filtering output by "chromium" and by "png" but nothing came up. If you know what specifically to look for in there please let me know.

Thank you!

rmlrml commented 8 years ago

P.S. I disabled all other addons except Open With and restarted, no go. I had also refreshed my firefox earlier today and had to reinstall my addons, so this is a fresh install of Open With.

darktrojan commented 8 years ago

Thanks for providing plenty of info to work with!

TBH, I'm not that surprised, Open With's icon finding abilities are not fantastic. You should be able to find the icon it's trying to use on the console (OW only logs when it starts up or when a browser changes, so that might be why you can't find it). I suspect it's moz-icon://stock/chromium?size=menu which is Firefox's way of asking the OS to find an icon.

rmlrml commented 8 years ago

Thanks. I can't find moz-icon://stock/chromium?size=menu in the Browser Console, and the only thing in the console mentioning OW is Content Security Policy: The page's settings blocked the loading of a resource at self ("script-src https://assests-cdn.github.com"). -- openwith:1:0.

When I enter moz-icon://stock/chromium?size=menu in the URL bar firefox shows me the Chromium icon.

darktrojan commented 8 years ago

Okay, looks like Open With is using the wrong icon. Your console log should look a little like this: