Discord on Linux / Wayland has no AFK detection
Hi,
When running Discord on Linux, specifically when running on Wayland under XWayland, AFK detection doesn't seem to work. If I leave discord open, it just always presents as available/online/here, and I never get push notifications on my Android phone.
I believe removing this functionality from Wayland is intentional- it prevents apps from getting user input or any information about what's happening when they aren't focused. Since Discord runs via XWayland, I assume it just always believes it's the active app?
Regardless, this is an annoying behavior, especially when I didn't realize it was happening. Missing notifications is a big deal, and seriously hurts my image of Discord as a reliable chat platform.
Is there any way we could get a fix for this, or even a workaround? For instance, could there be an option for Discord to only believe I'm at the keyboard if there's active mouse/keyboard input in the Discord window? Could that option be enabled automatically if XWayland is detected?
Or alternatively, could this AFK detection be disabled altogether? It's counter-intuitive, and makes notifications much more flaky than they need to be.
Thank you so much!
-
Experiencing the same here. No notifications on my phone and couldn't work out why.
Turns out it was because i'm using wayland.
2 -
Found this after searching for a while, after dealing with this for months.
I'm also experiencing this. I'm using Fedora 33 (which uses Wayland by default).
This has caused me to miss mobile notifications a lot of the times so I've been forced to either:
- completely exit Discord on desktop
- constantly open then check Discord on my phone
Very annoying.
I have
Push Notification Inactive Timeoutset to the lowest (1 minute). So I should get Discord push notifications on my phone after being afk from Fedora after 1 minute...but I don't. I've tried Discord installed from RPM Fusion and Flatpak.Mobile push notifications do get sent when:
- logging into an Xorg/X11 session
- using Discord only in a browser (Microsoft Edge, in a Wayland session).
But it doesn't work when installed as an app from Flatpak/RPM Fusion, in a Wayland session. Discord's afk/inactive timer never triggers, causing mobile push notifications to never get sent.
Hopefully this gets fixed, perhaps if Discord updates to native Wayland support/update Electron which may also fix the screensharing issues? Unsure though:
Native Wayland Support – Discord
This would also be a semi-workaround to this particular issue:
Allow 0 minute setting for "Push Notification AFK timeout" – Discord
Hopefully this gets fixed soon. +1 to this:Regardless, this is an annoying behavior, especially when I didn't realize it was happening. Missing notifications is a big deal, and seriously hurts my image of Discord as a reliable chat platform
:/
2 -
If you are willing to use BD, someone recently made a plugin to work around the issue:
-1
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer