Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 924454 - app-editors/vscode-1.86.1 has wrong .desktop file names
Summary: app-editors/vscode-1.86.1 has wrong .desktop file names
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Adel KARA SLIMANE
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-02-14 06:18 UTC by Quinten Kock
Modified: 2024-02-18 05:37 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Quinten Kock 2024-02-14 06:18:47 UTC
The .desktop files in the vscode package are called `vscode.desktop` and `vscode-url-handler.desktop`. However, VSCode itself reports as `code` and/or `code-url-handler`. As such, at least on Plasma Wayland, it doesn't associate with the pinned application in the task manager, and gets a generic Wayland icon.

A workaround consists of adding a KWin window rule (alt-f3 -> configure special application settings) and prefixing the desktop file name with "vs" to match Gentoo's desktop file name instead of the one expected by the application.
Comment 1 Larry the Git Cow gentoo-dev 2024-02-18 05:37:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc15838b4224f5bdf4be3b7f1bbba9d46711b33b

commit dc15838b4224f5bdf4be3b7f1bbba9d46711b33b
Author:     Adel KARA SLIMANE <adel.ks@zegrapher.com>
AuthorDate: 2024-02-17 01:30:59 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2024-02-18 05:37:21 +0000

    app-editors/vscode: fix .desktop file icon issue
    
    Closes: https://bugs.gentoo.org/924454
    
    Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 .../{vscode-url-handler.desktop => code-url-handler.desktop} |  0
 app-editors/vscode/files/{vscode.desktop => code.desktop}    |  0
 .../vscode/{vscode-1.86.1.ebuild => vscode-1.86.1-r1.ebuild} | 12 ++++++------
 3 files changed, 6 insertions(+), 6 deletions(-)