Taskbar icon not placed correctly

When opening ungoogled-chromium, which in pinned to Task Manager; it is opening the window in another tile instead of the clicked one. How can I fix this?

(Yellow icon is the clicked tile and blue is the opened one)

╰─>$ cat ~/.local/share/applications/ungoogled-chromium.desktop

[Desktop Entry]
Categories=Network;WebBrowser;
Comment=Access the Internet
Exec=/usr/bin/ungoogled-chromium --force-device-scale-factor=0.75 --keep-old-history --max-connections-per-host=15 --extension-mime-request-handling=always-prompt-for-install --popups-to-tabs --hide-fullscreen-exit-ui --remove-tabsearch-button --show-avatar-button=incognito-and-guest --tab-hover-cards=tooltip --disable-encryption --disable-machine-id --disable-features=DisableExtensionsOnChromeUrlsSwitch --enable-features=DisableQRGenerator,TouchpadOverscrollHistoryNavigation,UseOzonePlatform --ozone-platform=wayland --no-pings --disable-site-isolation-trials --isolate-origins=https://challenges.cloudflare.com --extensions-on-chrome-urls --process-per-tab --start-maximized --force-dark-mode --enable-force-dark --ignore-certificate-errors --password-store=basic --no-sandbox --user-data-dir=/root/chromium2 %U
GenericName=Web Browser
Icon=/root/Pictures/chrome-canary-logo.svg
Keywords=browser
MimeType=text/html;text/xml;application/xhtml_xml;application/x-mimearchive;x-scheme-handler/http;x-scheme-handler/https;
Name=Ungoogled-Chromium-2
NoDisplay=false
Path=
PrefersNonDefaultGPU=false
StartupNotify=false
StartupWMClass=ungoogled-chromium
Terminal=false
TerminalOptions=
Type=Application
Version=1.0
X-KDE-SubstituteUID=false
X-KDE-Username=
X-MultipleArgs=false
Operating System: Debian GNU/Linux forky/sid
KDE Plasma Version: 6.6.5
KDE Frameworks Version: 6.26.0
Qt Version: 6.10.2
Kernel Version: 7.1.3+deb14-amd64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-8650U CPU @ 1.90GHz
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: Intel® UHD Graphics 620

output2

(Video Proof of the Bug)

Show the desktop file for chromium.desktop. Your current ungoogled-chromium has root/chromium could be part of the issue

Hi @reisub I dont use chromium, but here’s the desktop file anyways.

╰─>$ cat /usr/share/applications/chromium.desktop 
[Desktop Entry]
Version=1.0
Name=Chromium Web Browser
...
...
Exec=/usr/bin/chromium %U
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=chromium
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml_xml;application/x-mimearchive;x-scheme-handler/http;x-scheme-handler/https;
StartupWMClass=chromium
StartupNotify=true
Keywords=browser

I tried a different profile path like /tmp/chromium with same results.

Someone help, Please!

did you try removing the root user reference in your EXEC value?

or replacing it with your users path?

I’m back on my pc, running a debian vm for this, how did you install ungoogled-chromium?

UPDATE: I installed it following these instructions:

1.Download the .deb files from MX Repos
2. install using sudo apt install ./ungoogled-chromium*.deb ./ungoogled-chromium-common*.deb --no-install-recommends

Then I used your same exact .desktop file, only the icon path changed:

[Desktop Entry]
Categories=Network;WebBrowser;
Comment=Access the Internet
Exec=/usr/bin/ungoogled-chromium --force-device-scale-factor=0.75 --keep-old-history --max-connections-per-host=15 --extension-mime-request-handling=always-prompt-for-install --popups-to-tabs --hide-fullscreen-exit-ui --remove-tabsearch-button --show-avatar-button=incognito-and-guest --tab-hover-cards=tooltip --disable-encryption --disable-machine-id --disable-features=DisableExtensionsOnChromeUrlsSwitch --enable-features=DisableQRGenerator,TouchpadOverscrollHistoryNavigation,UseOzonePlatform --ozone-platform=wayland --no-pings --disable-site-isolation-trials --isolate-origins=https://challenges.cloudflare.com --extensions-on-chrome-urls --process-per-tab --start-maximized --force-dark-mode --enable-force-dark --ignore-certificate-errors --password-store=basic --no-sandbox --user-data-dir=/root/chromium2 %U
GenericName=Web Browser
Icon=/home/vboxuser/Pictures/chrome-canary-logo.svg
Keywords=browser
MimeType=text/html;text/xml;application/xhtml_xml;application/x-mimearchive;x-scheme-handler/http;x-scheme-handler/https;
Name=Ungoogled-Chromium-2
NoDisplay=false
Path=
PrefersNonDefaultGPU=false
StartupNotify=false
StartupWMClass=ungoogled-chromium
Terminal=false
TerminalOptions=
Type=Application
Version=1.0
X-KDE-SubstituteUID=false
X-KDE-Username=
X-MultipleArgs=false

All working, fine so far, no second tile. I will try to install chromium alongside cause I suspect that might be causing the issue, i’ll update in a bit.

UPDATE 2: Yup, you gotta remove / uninstall chromium, that’s the problem. You don’t seem to use it, anyway.

Use:

sudo apt remove chromium

Thanks bro, it solved my issue. I was struggling with this for so long.

May God bless you with a young and fecund woman, And I hope that your first child, be a masculine child.

BTW, what is the reason for this Bug? Both packages having same upstream? Do you know, how to solve this permanently?

I uhh thanks?

Anyways it’s probably a WM_CLASS issue.

I haven’t checked it and I will check it to be sure but the system probably flags the window class as chromium and since you had chromium installed it refers to the chromium.desktop hence the second tile. You could maybe try to pass an --class=ungoogled-chromium arg in the ungoogled-chromium.desktop’s Exec and see if that helps but if uninstalling chromium fixed it then you’re good