Duplicate icon in plank

happened after AUR librewolf-bin update a couple days ago. Would like to remedy this.
PS–I could not find any thread about this.

The wolf on the far right is what happens when you click the wolf that’s the 5th one in.
The wolf on the far right cannot be right-clicked and ‘save to dock.’
Note the dot under that far right wolf: that’s the active browser.
The left wolf is right-clicked and ‘saved to dock’ but is completely useless. All it is capable of doing is launching the duplicate instance.

I know this is an easy fix by probably making names in files match, or similar, but where do I start.

other: nothing at AUR package site about this. I am using Cinnamon.
My goal: one functioning wolf button that is the browser, not two.
Thanks for any help

Try right-clicking the far right Librewolf and ‘save to dock’. Then delete the left one. Then close the new Librewolf and reopen it. Just a thought.

2 Likes

maybe try to remove the dockitem in the folder
~/.config/plank/dock1/launchers
replace dock1 with the correct dock number if using more than one
and then try readding it.

far right wolf has no context menu; cannot be pinned to dock

Then @thefrog’s suggestion may do the trick.

1 Like

I thought that would work but things the same–thank you though

1 Like

nuke the plank and restart it :man_shrugging:

1 Like
[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/librewolf.desktop

only thing in file

nope :slight_smile:
I had this problem one time with flatpak apps in plank, gonna check my notes if I made any at all.

1 Like

last time I had an issue with plank like this the only way i could do it was just kill all the current one and create a new one. Seems like I had spent a time trying different suggestions from the search I did and found that was the only one that worked. that was a while ago though.

I may uninstall/reinstall/and repopulate the dock too. thanks for the suggestions

1 Like

I’d hope there was an easier way :face_with_diagonal_mouth:

I got three librewolf.desktop files (in /src in yay package, in proper yay package, and in plank folder).

I’m going to see what’s different about these three if anything.

I think I gotta find the matching files in /home and /filesystem that have the WMClass= stuff in them.
more to come :slight_smile:

SOLVED:

terminal xprop WM_CLASS
touch the librewolf browser anywhere. Write down what itsays. Mine said ‘librewolf’.
Screw editing all the .desktop files–they all have a CAPITAL L for libre.
I had to find the big daddy in file system:

If you think opening this was a simple as sudo gedit usr/share/applications/LibreWolf, think again.
This is some kind of symlink. Despite what it says, it’s real name’s librewolf.txt.
So now sudo gedit usr/share/applications/librewolf.txt.

The text in the file was StartWMClass=Librewolf.
I edited it to StartWMCLass=librewolf. And saved file.
Lowercase L like xprop told me it was.

Immediately it reverted on desktop:
fix

I don’t think I have to re-edit all those non-Sudo .desktop files in /home do I?

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.