Launchers must specify WM_CLASS

On some Linux desktops, we get extra icons in the application dock.
This happens because the dock doesn't know the "class" of the
application.  We need to add StartupWMClass=xxx lines, where xxx is
the name associated with the application.

This patch addresses the following issue:

https://gitlab.com/kicad/packaging/kicad-ubuntu-builder/kicad-daily-package/-/issues/30

While it was written against Ubuntu, it also affects Fedora, and
probably other Linux systems too.

(cherry picked from commit e8e25fd732)
This commit is contained in:
Steven A. Falco 2022-01-10 17:14:42 -05:00 committed by Wayne Stambaugh
parent cd8d6ba079
commit 9af5ed32f7
6 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,7 @@ Icon=bitmap2component
Type=Application
Categories=Science;Electronics;
Exec=bitmap2component %f
StartupWMClass=bitmap2component
Name=KiCad Image Converter
GenericName=Bitmap to Component Converter
Comment=Create a component from a bitmap for use with KiCad

View File

@ -5,6 +5,7 @@ Icon=eeschema
Type=Application
Categories=Science;Electronics;
Exec=eeschema %f
StartupWMClass=eeschema
MimeType=application/x-kicad-schematic;
Name=KiCad Schematic Editor (Standalone)
GenericName=Schematic Capture Tool

View File

@ -5,6 +5,7 @@ Icon=gerbview
Type=Application
Categories=Science;Electronics;
Exec=gerbview %F
StartupWMClass=gerbview
MimeType=application/x-gerber;application/x-excellon;application/x-gerber-job
Name=KiCad Gerber Viewer
GenericName=Gerber File Viewer

View File

@ -5,6 +5,7 @@ Icon=kicad
Type=Application
Categories=Science;Electronics;
Exec=kicad %f
StartupWMClass=kicad
MimeType=application/x-kicad-project;
Name=KiCad
GenericName=EDA Suite

View File

@ -5,6 +5,7 @@ Icon=pcbcalculator
Type=Application
Categories=Science;Electronics;
Exec=pcb_calculator
StartupWMClass=pcb_calculator
Name=KiCad PCB Calculator
GenericName=PCB Calculator
Comment=Calculator for various electronics-related computations

View File

@ -5,6 +5,7 @@ Icon=pcbnew
Type=Application
Categories=Science;Electronics;
Exec=pcbnew %f
StartupWMClass=pcbnew
MimeType=application/x-kicad-pcb;
Name=KiCad PCB Editor (Standalone)
GenericName=PCB layout editor