deezer-linux icon indicating copy to clipboard operation
deezer-linux copied to clipboard

[BUG] Icon not properly displayed on Pop OS Cosmic

Open outerLeitmotiv opened this issue 3 months ago • 20 comments

Preliminary Checks

  • [x] I am using a recent version of the project.
  • [x] I have read the FAQ section of the documentation.

Short Description

The Deezer icon is not properly displayed on the app tray

Steps to Reproduce

  1. Install the Flatpack Deezer app on Pop OS Cosmic
  2. Pin it to the app tray

Observed Behavior

The Deezer logo is not displayed. Instead, the basic icon is displayed.

Expected Behavior

The Deezer logo is displayed.

Operating System

Distributor ID: Pop Description: Pop!_OS 24.04 LTS Release: 24.04 Codename: noble 6.12.10-76061203-generic x86_64

Project Version and Package

Deezer - Online music streaming service

ID: dev.aunetx.deezer
Ref: app/dev.aunetx.deezer/x86_64/stable
Arch: x86_64
Branch: stable
Version: 7.0.140
License: LicenseRef-proprietary=https://www.deezer.com/legal/cgu/
Origin: flathub
Collection: org.flathub.Stable
Installation: user
Installed: 326.0 MB
Runtime: org.freedesktop.Platform/x86_64/24.08
Sdk: org.freedesktop.Sdk/x86_64/24.08
Commit: b6bc939f54a805a0317d6b4855523351082f4f8f74f2d9fdea1504348c2abd02
Parent: 12406f83ec1f7e611a202b2f871118e934800ad9876f55ba5d539a9b289ae874
Subject: Merge pull request #35 from flathub/update-master-70a9404 (50b6aca3ca2c)
Date: 2025-08-16 16:59:51 +0000

Environment Variables

No response

Additional Information (Optional)


outerLeitmotiv avatar Sep 02 '25 08:09 outerLeitmotiv

Thanks for your report @outerLeitmotiv

Could you provide some additional information:

  • wmclass (tutorial on askubuntu)
  • .desktop file (https://github.com/flatpak/flatpak/issues/1286)

Related to https://github.com/aunetx/deezer-linux/pull/19

josselinonduty avatar Sep 02 '25 09:09 josselinonduty

cat .local/share/flatpak/exports/share/applications/dev.aunetx.deezer.desktop
[Desktop Entry]
Type=Application
Name=Deezer
GenericName=Online music streaming service
Comment=Listen and download all your favorite music
StartupNotify=true
Icon=dev.aunetx.deezer.svg
Terminal=false
MimeType=x-scheme-handler/deezer;
Categories=Audio;Music;Player;AudioVideo;
Keywords=Music;Player;Streaming;Online;
StartupWMClass=Deezer
SingleMainWindow=true
X-GNOME-UsesNotifications=true
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=run.sh --file-forwarding dev.aunetx.deezer @@u %U @@
X-Flatpak-Tags=proprietary;
X-Flatpak=dev.aunetx.deezer

However on cosmic I must say I struggle to find the wmclass info

outerLeitmotiv avatar Sep 02 '25 10:09 outerLeitmotiv

Thanks for the desktop file. It seems completely fine.

I've been able to reproduce your issue on Pop!_OS 24.04 in VirtualBox.

Image

Tray icon (top right) seems fine, however dash/pinned icon does not show up. It does not show up correctly in the launcher as well.

Based on https://github.com/pop-os/cosmic-launcher/issues/241, I would argue that it is related to Cosmic directly.

Workaround:

Edit ~/.local/share/flatpak/app/dev.aunetx.deezer/current/active/export/share/applications/dev.aunetx.deezer.desktop

- Icon=dev.aunetx.deezer.svg
+ Icon=/home/<user>/.local/share/flatpak/app/dev.aunetx.deezer/current/active/export/share/icons/hicolor/scalable/apps/dev.aunetx.deezer.svg

I tried to create a local file (recommended way) but it did not work (most likely something with Pop!_OS again).

josselinonduty avatar Sep 02 '25 15:09 josselinonduty

@outerLeitmotiv have been able to solve the issue by updating the app or using the workaround?

josselinonduty avatar Nov 01 '25 23:11 josselinonduty

I would like to add that this is the case for the appimage file as well. not sure if it's needed but i'm on cachyos + hyprland. I couldn't get the flathub install to run properly, so i switched to the appimage version. should I unpack and manually install it? maybe it'll work then?

Lynndroid21 avatar Nov 07 '25 17:11 Lynndroid21

I have the same bug on Pop_OS! stable. It does not only happen on cosmic.

Desktop file:

[Desktop Entry]
Type=Application
Name=Deezer
GenericName=Online music streaming service
Comment=Listen and download all your favorite music
StartupNotify=true
Icon=dev.aunetx.deezer.svg
Terminal=false
MimeType=x-scheme-handler/deezer;
Categories=Audio;Music;Player;AudioVideo;
Keywords=Music;Player;Streaming;Online;
StartupWMClass=Deezer
SingleMainWindow=true
X-GNOME-UsesNotifications=true
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=run.sh --file-forwarding dev.aunetx.deezer @@u %U @@
X-Flatpak-Tags=proprietary;
X-Flatpak=dev.aunetx.deezer

Os:

Distributor ID: Pop
Description:    Pop!_OS 22.04 LTS
Release:        22.04
Codename:       jammy
Image

Edit: It only happens in the launcher, but not in the app switcher or the application top bar.

do-nat avatar Dec 01 '25 10:12 do-nat

@do-nat @outerLeitmotiv @Lynndroid21 could you check latest release (v7.1.x)? (flathub should be available soon, and you can get a local flatpak build in the release artifacts)

josselinonduty avatar Dec 07 '25 18:12 josselinonduty

not sure what originally happened, but reinstalling it fixed the issue!

Lynndroid21 avatar Dec 07 '25 18:12 Lynndroid21

not sure what originally happened, but reinstalling it fixed the issue!

sometimes you have to reload your session so flatpak environment variables are correctly registered, might be related to your issue

josselinonduty avatar Dec 07 '25 18:12 josselinonduty

For anyone still having an issue, please run flatpak update dev.aunetx.deezer and you should be good :) I'm sorry for the inconvenience

josselinonduty avatar Dec 08 '25 17:12 josselinonduty

Thank you for your work! @josselinonduty

I still have this issue on version 7.1.20, but it might be my wonky system ...

do-nat avatar Dec 09 '25 08:12 do-nat

Hi Josselin. Sorry about my lack of response as of late. The Deezer app was updated yesterday & today, but the "issue" is not yet solved. I have currently version: 7.1.20 installed.

Furthermore, I tried the fix you proposed here:

- Icon=dev.aunetx.deezer.svg
+ Icon=/home/<user>/.local/share/flatpak/app/dev.aunetx.deezer/current/active/export/share/icons/hicolor/scalable/apps/dev.aunetx.deezer.svg

But this did not help.

I must say tho, that this is a very minor inconvenience on an otherwise flawless app.

outerLeitmotiv avatar Dec 09 '25 09:12 outerLeitmotiv

I am unable to reproduce this issue on a brand new VMed Pop!_OS 22.04

Image

Chould you try to uninstall the app and reinstall, if you haven't already?

josselinonduty avatar Dec 09 '25 10:12 josselinonduty

It only happens with the launcher (Press Super, then type deezer), but not in the dock:

Image

I have already updated and reinstalled the app 😇

do-nat avatar Dec 09 '25 10:12 do-nat

I see now

Image

I'll try to understand how the launcher works/loads icons

josselinonduty avatar Dec 09 '25 10:12 josselinonduty

Workaround for me (default/user install):

nano ~/.local/share/flatpak/exports/share/applications/dev.aunetx.desktop

# Edit Icon field
Icon=.local/share/flatpak/exports/share/icons/hicolor/scalable/apps/dev.aunetx.deezer.svg

Please tell me if it worked @do-nat @outerLeitmotiv

josselinonduty avatar Dec 09 '25 14:12 josselinonduty

@josselinonduty It does work if I change the Icon to an absolute path, but not with a relative one and also not with ~/.local/....

Working config:

Icon=/home/do-nat/.local/share/flatpak/exports/share/icons/hicolor/scalable/apps/dev.aunetx.deezer.svg

It looks like other apps that work also have a absolute path there instead of a relative one or one that starts with .local

do-nat avatar Dec 09 '25 15:12 do-nat

What other flatpak apps do you have installed, if you're fine telling me?

I would like to compare the way other apps are packaged

josselinonduty avatar Dec 09 '25 15:12 josselinonduty

I have e.g. Discord installed via flatpak, but it also does not have a full path for the icon, just the app id.

I thought it might be because you only provide an svg, but Discord is an example that only provides an svg, too.

hu.irl.cameractrls is another app that works and has an svg for the icon

do-nat avatar Dec 10 '25 07:12 do-nat

Ahhh, I got it! You can't postfix .svg, this breaks it. Just the application id: dev.aunetx.deezer.

I created a PR for that: https://github.com/aunetx/deezer-linux/pull/188

do-nat avatar Dec 10 '25 07:12 do-nat