Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vscode: Duplicate icon in plasma with URL Handler tag if .local/share/plasma-systemmonitor/overview.page exists. #391341

Open
3 tasks done
jpcregan opened this issue Mar 19, 2025 · 6 comments
Labels
0.kind: bug Something is broken

Comments

@jpcregan
Copy link

jpcregan commented Mar 19, 2025

Nixpkgs version

  • Stable (24.11)

Describe the bug

Heyo,

Still new to NixOS, liking it so far but a bug has appeared that I cannot seem to find a fix so I tried to investigate it myself.

I've a basic setup with plasma6 using vscode for development. Everything works as expected but sometimes VS Code opens outside the pin in the task bar, and it's related to the URL handler desktop shortcut.

I tried reproducing steps to see what triggered it, but after about a week or so (and a couple reinstalls to test) I then decided to bisect my home directory to find the file.

If .local/share/plasma-systemmonitor/overview.page does not exist, then everything works as expected. As soon as that file exists, even if it's blank, the problem occurs.

I'm well versed with Linux but have zero clue on where to investigate from here, hence the bug report. It still baffles me how a seemingly unrelated package config file existing can affect the behaviour of plasma opening an entirely different program.

Any help is appreciated.

Regards,
Jordan

Steps to reproduce

  1. Install vscode, pin to task bar.
  2. Create .local/share/plasma-systemmonitor/overview.page (I assume it's created by system monitor automatically)
  3. Log out and relogin. (This can take several trys)
  4. Open vscode

Expected behaviour

.local/share/plasma-systemmonitor/overview.page existing should have no effect on other programs

Screenshots

Behaviour without overview.page
Image
As soon as created
Image

Relevant log output

Additional context

No response

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.6.83, NixOS, 24.11 (Vicuna), 24.11.715729.a1185f4064c1
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.12
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Notify maintainers

vscode
@eadwu
@Synthetica9
@bobby285271
@JohnRTitor
@JeffLabonte

plasma
@ilya-fedin
@K900
@LunNova
@mjm
@NickCao
@SuperSandro2000
@ttuegel


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

@jpcregan jpcregan added the 0.kind: bug Something is broken label Mar 19, 2025
@jpcregan jpcregan changed the title vscode: Program shows up with URL Handler tag if .local/share/plasma-systemmonitor/overview.page exists. vscode: Duplicate icon in plasma with URL Handler tag if .local/share/plasma-systemmonitor/overview.page exists. Mar 19, 2025
@jpcregan
Copy link
Author

Correction:

It seems you need to log out and back in again to trigger the issue. I have updated the steps to reproduce.

@JeffLabonte
Copy link
Contributor

@jpcregan Have you tried with any other electron-based applications? Does it do the same behaviour?

@jpcregan
Copy link
Author

@jpcregan Have you tried with any other electron-based applications? Does it do the same behaviour?

Discord and VSCodium work fine, VSCodium having the exact same format URL Handler file.

diff code.desktop codium.desktop:

5c5
< Exec=code %F
---
> Exec=codium %F
7c7
< Icon=vscode
---
> Icon=vscodium
9c9
< Name=Visual Studio Code
---
> Name=VSCodium
11c11
< StartupWMClass=Code
---
> StartupWMClass=vscodium
16,17c16,17
< Exec=code --new-window %F
< Icon=vscode
---
> Exec=codium --new-window %F
> Icon=vscodium

diff code-url-handler.desktop codium-url-handler.desktop:

4c4
< Exec=code --open-url %U
---
> Exec=codium --open-url %U
6c6
< Icon=vscode
---
> Icon=vscodium
8,9c8,9
< MimeType=x-scheme-handler/vscode
< Name=Visual Studio Code - URL Handler
---
> MimeType=x-scheme-handler/vscodium
> Name=VSCodium - URL Handler
12c12
< StartupWMClass=Code
---
> StartupWMClass=vscodium

@LunNova
Copy link
Member

LunNova commented Mar 21, 2025

I was able to kinda repro this on nixos-unstable, I'm not sure the repro steps are pointing at the root of the problem.

Before I tested anything, I hadn't pinned code, and .local/share/plasma-systemmonitor/overview.page already existed.

I pinned code, it worked as expected despite the file existing.

I rebooted, .local/share/plasma-systemmonitor/overview.page still existed, vscode stopped grouping with the pinned icon.

@JohnRTitor
Copy link
Contributor

Sounds like an issue on Plasma in general.

  1. https://www.reddit.com/r/kde/comments/141v67v/is_there_a_fix_for_the_duplicate_icons_in_the/
  2. https://discuss.kde.org/t/google-chrome-is-shown-twice-in-the-panel-task-manager-when-open/2837

I have faced this too, back when I was still using Plasma, but those were Plasma 5 days.

@sabrsorensen
Copy link

I'm currently seeing these duplicate icons as well, I have not been able to locate .local/share/plasma-systemmonitor/overview.page on my system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

5 participants