-
Notifications
You must be signed in to change notification settings - Fork 43
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
Unread notification badge #228
Comments
There was an attempt at packaging libunity here: #167 Not sure why it never happened, but with some love and testing maybe it could be done. |
Well, I've managed to build master with this patch included, but it hasn't added notification badges for me. Of course there is every possibility I did it wrong - I don't know anything about flatpak repos. |
Could be a missing permission, can you run it with |
No difference there - I'm assuming you meant for me to run my build with |
Almost; It's an option for If that works it means we can track down a specific dbus permission to allow the library to work. |
No success, sadly. Although I did spot an interesting detail, the first line printed in the console after running the app was: Here's the full console output of what I did just now:
|
Incidentally, I do have |
|
Oh duh - I should've done that up front. Okay, with submodules included I have a build error with
I don't have python 3.9, so I guess this is provided by flatpak's build system, right? Looks to me like it's trying to install a Python package by directly writing files into python 3.9's home dir but isn't being given write permission. |
Patch their build system to write into Also just to be clear about a misunderstanding on your part. Everything is in flatpak. Your host packages mean nothing and are not used. |
Alright, so with a TON of help from @viriuwu we managed to get libunity to build as part of Discord's manifest (https://github.com/Adamcake/com.discordapp.Discord). However, still no notification badge. Here's the full output from I don't know what I'm looking for but nothing is jumping out at me. Thanks for your help so far. (having re-read our conversation, maybe it's not the console output that you needed?) |
If it worked I was going to help track down the permission it needed. Since it doesn't work more investigation is needed to figure out why it works on the host. |
Any updates on this? I'd love to get notification badges on Discord as a Flatpak |
A few days after I last posted in this thread, Discord pushed an update which completely broke notification badges on their program, even on the official Ubuntu version. I don't know if they've fixed it since but, given the amount of basic technical understanding they seem to lack, and the sheer difficulty of reporting any issue to them, I doubt it. So it seems pretty unlikely that you'd be able to get the feature to work inside flatpak now, given that it doesn't work to begin with. I wonder if there'd be any mileage in running the Windows version through Wine? |
The badges are a Linux specific DBus API. So I'm not sure what you'd expect from that. |
Discord on Windows has notification badges. Depending on how they're implemented, Wine may well be able to translate them into an X11 context. Sure it probably wouldn't be going via dbus and the DE anymore, but it'd be better than nothing. Okay, now that I read this comment back it does sound like an extreme change for a tiny feature. But I honestly don't think we'd really be sacrificing anything. Discord is mostly Windows devs so the Windows client works better in general. |
I don't think there is a reasonable translation between the two APIs. |
Well that's a shame, back to square 1 then. |
The regular Discord client for Linux has an unread notification badge that shows up in my KDE task manager, if you turn on the "Enable Unread Message Badge" setting. It looks like this (the colour varies depending on if your DE has a colour scheme.) However, it only works if libunity is present on the system (almost certainly because Discord only tested their software on Ubuntu, but I digress.) If libunity SOs not present then no badges will ever be shown in the task manager, regardless of whether that setting is on or off.
Keeping libunity and its dependencies up-to-date on a system that doesn't ship with it is quite a hassle. Is there anything flatpak can do to implement this feature?
The text was updated successfully, but these errors were encountered: