Shows two icons of Brave
Junction v 1.9 recently started showing two Brave icons despite application there is only one installation and list still contains one only. Other browsers display correctly.
I also noticed this for Chrome. Based on the instructions in https://github.com/sonnyp/Junction/issues/156, it looks like this was because Chrome ships two .desktop files, google-chrome.desktop and com.google.Chrome.desktop. Removing my ~/.var/app/re.sonny.Junction/config/mimeapps.list file fixed the problem for me.
Echoing what @aripollak said, Chrome ships with two .desktop files, Brave is probably similar.
Try this: In your terminal run:
ls -l /usr/share/applications
Do you see two brave desktop entries? If so make a backup of the file that starts with com.Brave and then you can delete com.Brave... file and leave the brave.desktop (not sure of exact names) and this should work.
Edit: screenshot attached for your file name references.
Thanks @aripollak @ImLake, yes there are two brave desktop file, as I got it the brave-browser.desktop is sort of traditional approach when com.brave.Browser.desktop follows the newer naming convention. For some reason chrome keeps both. I thought changing ~/.var/app/re.sonny.Junction/config/mimeapps.list removing one of brave links from x-scheme-handler/https can work but didn't.
Removed brave-browser.desktop it disappeared from app launcher also, so the easiest way for me just as @ImLake said was deleting com.Brave.
I was about to close this issue but noticed it is referred in https://github.com/sonnyp/Junction/pull/179, so let it live
It might not be relevant anymore, but the problem might be solved by respecting NoDisplay=true. It is one of the first entries in the com.brave.Browser.desktop
It might not be relevant anymore, but the problem might be solved by respecting
NoDisplay=true. It is one of the first entries in the com.brave.Browser.desktop
I agree, the default Gnome app selector shows only one entry for Chrome to me because it respects the NoDisplay=true 😉
Well, this is still broken. Any updates?
https://github.com/sonnyp/Junction/pull/189