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

Odin beta 2 notification bubble icon question #137

Open
WebShapedBiz opened this issue Jun 27, 2021 · 8 comments
Open

Odin beta 2 notification bubble icon question #137

WebShapedBiz opened this issue Jun 27, 2021 · 8 comments

Comments

@WebShapedBiz
Copy link

Describe the bug

I'm using Moderndeck as my Twitter client for some time now and it's hooked up with a notification server. In Hera, every time I get a new tweet the notification bubble pops up, showing at the left side a profile image of the user that just tweeted.
In Odin beta 2 however, there is no profile image, just dialog-information status icon.

Platform Information

elementary OS 6 Early Access
Linux 5.8.0-50-generic
8× AMD Ryzen 7 4800u with radeon graphics
Advanced Micro Devices, Inc. [AMD®/ATI] Renoir

I'm using the latest released beta version with the latest updates at the time of writing this, vanilla installation with no compiling or custom icons or anything like that.

On both computers, Hera and Odin, the ModernDeck is installed as AppImage, and the app has both icons, in app menu and wingpanel, as you can see here:
Slika zaslona s 2021-06-27 08-31-01

Don't know if it is a bug or a new feature, so if that's intentional change from Hera, sorry for this issue.

Cheers.

@hanaral
Copy link

hanaral commented Jul 8, 2021

@WebShapedBiz
I presume it has something to do with appimages not integrating with OS apps - how were you able to get the app to show up in settings? did you create your own .desktop file?

@WebShapedBiz
Copy link
Author

@hanaral
I've actually copied it from my Hera computer, so it is the same .desktop file

@hanaral
Copy link

hanaral commented Jul 9, 2021

In that case it may be that the app running not being recognised as the source for that notification.
Do you happen to know how the app is sending notifications? could it be just notify-send?

@WebShapedBiz
Copy link
Author

Sorry, @hanaral, I'm just a user, I have no clue. The point is that the same app and same setup that works in Hera doesn't work in Odin, whether the app uses notify-send or not.

@hanaral
Copy link

hanaral commented Jul 9, 2021

I'm no developer either. I've never gotten notifications to properly work with electron apps anyway, they would pretty much always send it with the info icon. The reason it doesn't work in Odin may have something to do with the large notification server rewrite and its stricter rules for identifying apps.
@jeremypw would you happen to know what might be causing this electron app to send notifs with the default icon?

@jeremypw
Copy link

jeremypw commented Jul 9, 2021

@hanaral Sorry, no. I do not know whether it is a feature of all electron apps or just this one. Probably need to look at the source code.

@Marukesu
Copy link
Contributor

Marukesu commented Jul 9, 2021

there's two issues, one is that the server don't have support for the image-data hint and should be fixed by #123. the other is the fact that dialog-information is used instead of the application icon. and i believe is a problem with the application (probably the same issue from elementary/wingpanel-indicator-notifications#206).

electron uses the desktopName field of the application package.json as the desktop-entry hint. if that field isn't declared, productName or name is used instead.

looking the ModernDeck's package.json, it uses "ModernDeck" as productName and don't set a desktopName, so you need to make sure the .desktop file is named ModernDeck.desktop, otherwise, the notification server can't find the application .desktop.

@WebShapedBiz
Copy link
Author

Thank you @Marukesu for your time and effort.

Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants