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

[BUG] Missing StartupWMClass in setup-desktop-entry.sh causes generic icon when running in task bar #465

Closed
heldderarbeit opened this issue Mar 11, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@heldderarbeit
Copy link

heldderarbeit commented Mar 11, 2025

Describe the bug
A clear and concise description of what the bug is.

The setup-desktop-entry.sh script does not set a StartupWMClass entry. Therefore when launching Flashpoint from the desktop file, only a generic icon is shown in the taskbar instead of the flashpoint logo.

To Reproduce
Steps to reproduce the behavior:

  1. Download and extract https://download.unstable.life/upload/fp14.0.1_lin_main_20250222.7z
  2. Run setup-desktop-entry.sh
  3. Copy the created desktop file to ~/.local/share/applications
  4. Run flashpoint from the app launcher and look at the task bar

Expected behavior
flashpoint logo instead of generic logo should be shown in the task bar.
setup-desktop-entry.sh should create a StartupWMClass=flashpoint-launcher line

Screenshots
Before setting StartupWMClass=flashpoint-launcher:

Image

After setting StartupWMClass=flashpoint-launcher:

Image

Desktop (please complete the following information):

  • OS: Linux
  • Flashpoint Version: 14.0.1 (20250222)
  • Log text (if relevant)

Additional context
This is a known problem for many programs, see for example: https://discussion.fedoraproject.org/t/app-icon-image-not-displaying-in-dock/130680

@heldderarbeit heldderarbeit added the bug Something isn't working label Mar 11, 2025
@Maoijoon
Copy link
Collaborator

This is not a launcher bug; the desktop entry and script that creates it are not a part of this repo. It's a problem with the Linux version itself.
I use a compositor that doesn't have a dock, and didn't show window icons by default until recently. I never got around to testing if the icon worked because of that, other than it showing up in my file manager.
Will test this fix to see if it works on my compositor now before applying it.

@Maoijoon
Copy link
Collaborator

Fixed both issues by using a standard SVG for the icon, adding StartupWMClass to the desktop entry, and creating the entry in ~/.local/share/applications by default. The XDG docs don't make it clear that entries need to be in a location like that for the icon to work; I had to figure that out myself. The entry's location can be changed if desired by editing the DIR variable in the script and re-running it.
Resolves this issue and #466.
setup-desktop-entry.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants