Junction icon indicating copy to clipboard operation
Junction copied to clipboard

Shows two icons of Brave

Open Eramedy opened this issue 8 months ago • 4 comments

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. Image

Eramedy avatar May 06 '25 14:05 Eramedy

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.

aripollak avatar May 08 '25 17:05 aripollak

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.

Image

ImLake avatar May 13 '25 18:05 ImLake

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

Eramedy avatar May 14 '25 11:05 Eramedy

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

CristianKerr avatar May 27 '25 12:05 CristianKerr

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 😉

oskarnrk avatar Jul 14 '25 08:07 oskarnrk

Well, this is still broken. Any updates?

SimonPrague avatar Aug 21 '25 20:08 SimonPrague

https://github.com/sonnyp/Junction/pull/189

sonnyp avatar Oct 13 '25 15:10 sonnyp