Icon for Brave from a Distrobox container looks like a gear

In Bluefin I installed Brave in a Distrobox container using Distroshelf. When I click the Brave icon in Bluefin the icon on the taskbar looks like a gear and not the Brave icon. How can I fix that?

You haven’t written why did you install Brave in container. Do you have some integration problem with flatpak? Just in case if you have missed, you can install Brave as flatpak from Flathub.

Sometimes Distrobox does not find icon and that is why gear like icon appears. On computer search for .desktop file (probably named brave.desktop or something) and in this file look for Icon row where is path to icon file. If you change this path to e.g. manually downloaded icon from web, or by entering inside the Brave’s Distrobox container and search for icon and copy it out of container to host.

Brave does not recommend using the Flatpak version. Installing Brave on Linux | Brave

I found the row for icon but it doesn’t show a paths it just says “Icon=brave-browser”.

If you want to use Brave’s recommended installation methods, you could use their steps for Fedora Atomic Desktops:

run0 curl -fsSLo /etc/yum.repos.d/brave-browser.repo https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo

run0 rpm-ostree install brave-browser

Don’t know if this is still an issue, but I had a similar obstacle on Aurora. In my case I used a container because I couldn’t get the full interactive functionality between KeePassXC and Brave browser in flatpak, thus I installed both in a distrobox container, exported, and they work fine. I don’t know how different doing this in Gnome is different from KDE, but in KDE you basically have to identify the WM_CLASS and update the configuration appropriately for the StartupWMClass=your-window-class-here entry in the .Deskcop file for Brave. Again that was for KDE Plasma but I don’t know it might point you in the right direction, like I said if this is still even a thing.