Two chrome icons showing in Default Applications drop down menu.

Hi,

I’m very new to using KDE. So, if this issue has already been discussed or solved, my apologies for not searching more than I did to find a solution.

After the initial installation of Fedora 44 KDE, I wanted to install Google Chrome and have it integrated with 1Password as my password manager. I found that in order to do this, I needed to install Google Chrome with dnf (not flatpak). So, I did the following:

sudo dnf config-manager setopt google-chrome.enabled=1

sudo dnf install google-chrome-stable

and installed google chrome. I then launched google chrome and logged in. I then went to the Default Applications to make Google Chrome my default browser. In doing so, I see the following:

I’m not quite sure how this is occurring or why, but it would be nice to have the icon that is not the correct one not there to avoid any future confusion.

I did choose Other and navigated to the Internet tab and chose the Google Chrome that is there making sure to actually choose the one that is installed.

I have not installed any other Google Chrome prior to the installation I did via dnf.

If anyone has any solutions I would be most appreciative.

Pete

Well, I think I found the issue and a work around. The file that is causing the second icon is: /usr/share/applications/google-chrome.desktop

If you move that file and give it a different name, or remove it entirely, the second icon goes away from the Default Applications drop down menu for the web browser.

When you install google chrome with flatpak the file doesn’t exist in /usr/share/applications.

I’m not sure what that file does and why it’s there. Everything seems to work without it being in /usr/share/applications.

Does anyone have any ideas?

Pete

Hi!

I vaguely remember having a similar problem with Chrome though even if it’s an implanted memory or something the solution is exactly what you did. .desktop files are launcher files similar to Shortcuts (.lnk) on Windows. You’re safe to delete one of them and keep the other.

hi, welcome.

one is probably from the native install and the other one is from the flatpak install.

just uninstall the one you don’t want to remove the ambiguity.

if you want to keep both for some reason, then use your “other…” navigation workaround is the best option.

Hi, I’m experiencing a similar issue, for MS Edge though.

That is part of the problem. I don’t know how or where the second icon is appearing. I know it has something to do with the /usr/share/applications/google-chrome.desktop file, but not knowing enough about how that file is generated or why they created it the way that they did to do what it does, I am at a loss.

The problem is, I only installed the one instance of the RPM file from the google-chrome repo. As I stated originally, I never installed it with flatpak. So, there should only be one, correct?

That’s interesting that the same thing is occurring with another browser, yet, with Firefox none of this happens. Weird.

.desktop files are typically generated during the installation process. The problem you might be having is that you could have two .desktop files in different locations for example the second one could be in ~/.local/share/applications. Keep in mind that it could als be called something like chrome-hnpfjngllnobngcgfapefoaidbinmjnm-Default.desktop. Though what I don’t understand is that is the problem reoccurring or is everything working fine after deleting one of the .desktop files?

ah, i was assuming fedora came with the flatpak installed… my mistake.

if you right click on the app menu (start button) you can “edit applications…” and in there you can see what each application icon is actually launching.

this is the same info that is contained in the .desktop file.

I have had this issue for a year now. I don’t have any Chrome .desktop on ~/.local/share/applications/ but i have double on /usr/share/applications

Also if i right-click on a photo it show it double.

It show double also on Default Applications

I tried once to re-install it from scratch by disappearing any trace of the browser but as soon as i installed it clean, it came out double back. Maybe it’s a browser problem, just didn’t bother to follow it, saw this topic and wanted to confirm it too.

if you compare the two .desktop files, what are the differences?

if the Exec= lines are different then you can likely delete the one you don’t need or give it a different icon so you can distinguish.

I did a diff between the two files and this is what is different in the com.google.Chrome.desktop file:

This is the same as google-chrome.desktop except NoDisplay=true prevents

duplicate menu entries. This is required to match the application ID

used by XDG desktop portal, which has stricter naming requirements.

The old desktop file is kept to preserve default browser settings.

NoDisplay=true

So, I renamed the com.google.Chrome.desktop file with my userid appended to the end of it to name something other than was installed and the second entry has disappeared.

Many thanks to everyone for all their help, and a special thank you to @Gigomite as they were the one that led me to the com.google.Chrome.desktop in /usr/share/applications that was causing the issue. Never did I think to look in that directory using the file manager. I was doing all my searching in the Konsole terminal window.

Anyway, I am pleased that this is resolved and appreciate everyone’s help and patience dealing with me being new to KDE and Plasma.

Pete

And, for those wondering what happens when google chrome gets updated (like it just did), it puts back the com.google.Chrome.desktop file that I originally appended my userid to. So, to make sure that there were no necessary changes to the file that just got installed, I did a diff between them and they were the same. So I removed the file that I had appended my userid to and renamed the new com.google.Chrome.desktop file to be the new com.google.Chrome.desktop with my userid appended to it.

I then checked the default applications and there was only one entry, as it should be.

Pete

you should also be able to do this by going into the meun editor and setting the duplicate to 'hidden".

they do basically the same thing, it removes them from the sight of the desktop shell.