-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Idle detection is unreliable on GNOME #155
Comments
I've narrowed this down to a Linux issue. It does not affect Mac or Windows. I'm not sure yet if it is a "feature" in Linux, where it is being shut down when it goes to the background, or if it is a bug in Iced, or something else completely. Looking into it. Thanks for the report. |
Unfortunately, I don't think I will be able to fix this. I suspect it is something in Wayland. I need to try it on X11 to confirm. I'll keep trying though. |
Thanks for the update and your efforts! I'd like to help debug this but I lack the knowledge to be of much help here... please let me know if I can do anything! I guess if this can't be fixed anytime soon, I'll revert to the old libadwaita-based Furtherance. According to the official Flatpak docs, I have to find the Flathub commit hash belonging to the desired Furtherance version. Of the old Furtherance app identifier Meaning: ❯ flatpak remote-info --log flathub com.lakoliu.Furtherance
ID: com.lakoliu.Furtherance
Ref: app/com.lakoliu.Furtherance/x86_64/stable
Arch: x86_64
Branch: stable
Collection: org.flathub.Stable
Download: 1.7 MB
Installed: 4.6 MB
Runtime: org.gnome.Platform/x86_64/46
Sdk: org.gnome.Sdk/x86_64/46
Commit: 273851f9d3efe8b56e83e08746f36a3c98b9066851793b90a8f9b09b8ecb5cf7
Parent: b0667d0b90a9b41f36ef88d19f2fd147a41e3b7e9cad8aecbb0367447a440fde
End-of-life: Application has been renamed to io.unobserved.furtherance
End-of-life-rebase: app/io.unobserved.furtherance/x86_64/stable
Subject: Update screenshot links (f2226f7a)
Date: 2024-10-03 11:52:05 +0000
History:
Commit: b0667d0b90a9b41f36ef88d19f2fd147a41e3b7e9cad8aecbb0367447a440fde
Subject: Update Furtherance runtime to 46 (a2aef2bf)
Date: 2024-07-01 09:09:14 +0000
Commit: 586d12aabf6b160b0f5223cc7fd0627f36517672dca04091e6a88bb4873f6090
Subject: Release Furtherance 1.8.3 (1781b643)
Date: 2024-02-05 14:40:35 +0000
Commit: 9edb7fc7f22e894d903ce8340acca301198c655d5d0504d913bd3603cc37ca57
Subject: Release Furtherance 1.8.2 (75770f3e)
Date: 2023-10-16 06:54:50 +0000
Commit: 13b323534770e6720c8b03552b27ba148a717009fbca0612320942b1a62d37c8
Subject: Release Furtherance 1.8.1 (230b3793)
Date: 2023-06-16 10:26:00 +0000
Commit: c7b7a389a46ef88fac1ca76f6fd7d88aff307be33ea35ceda126b52369d14546
Subject: Release Furtherance 1.8.0 (38ebb688)
Date: 2023-06-05 12:07:04 +0000 So the above tells me And if I downgrade, would I have to first export current Furtherance's DB and re-import it in the old Furtherance (because of DB schema changes)? |
Sorry, I just don't have the time or capacity to support reverting to the old version. However, the good news is I created a work around that solves this for now. On GNOME, Furtherance will now launch using The issue seems to be that Wayland automatically stops drawing and updated all apps that are not visible, which is cool in theory for performance/efficiency but sucks for any app that needs to keep running. Obviously GTK4 apps have somehow gotten around this, so I'll need to look into how they do that. I hope this will be fixed upstream in either I'll put out a new release with this fix soon, hopefully later today. I really appreciate all of the work you've done over the last couple of weeks to improve Furtherance, @salim-b. Hopefully this is a satisfying solution for the time being. |
Thank you for providing technical insight and trying to come up with this XWayland workaround! I just updated to Furtherance v24.10.4, but unfortunately it doesn't work at all for me (neither on Bluefin nor on Ubuntu 22.04), Furtherance just crashes on start:
Let me know if you want me to open a separate issue for this :) |
That's annoying. I like Flatpak as a user, but as a developer it can be a nightmare. I'm going to revert the changes for now. Unfortunately, that means idle detection won't work on Wayland while the app is in the background unless you can force it to run in XWayland yourself by setting the environment variables I will continue trying to work on another solution. |
I can only imagine how Flatpak can make development frustrating, especially in conjunction with new or not yet sufficiently standardized protocols and technologies. 🙈 IIUC, you're currently querying Now there seems to exist a dedicated I don't know the implications of GNOME's Mutter compositor not (yet?) implementing this Wayland protocol. The Maybe you could build upon |
Yeah, I've already started working on an implementation using |
Great to hear! And please don't feel pressured by me and this bug. I totally understand that there are other duties. Good things take time. 😊 |
Small addendum: This issue in another project mentions the |
In the new Furtherance based on Iced (v24.10.3), the idle detection on GNOME only works as supposed when Furtherance's window is visible, i.e. not minimized, fully hidden behind other windows, or moved to a workspace other than the currently active one.
I tested with Bluefin (
bluefin-dx:gts
which is currently on GNOME 45.6) and Ubuntu 22.04 (GNOME 42.9), using the Flatpak.The old Furtherance built on libadwaita didn't have this deficiency, i.e. idle detection under GNOME reliably worked regardless of the window state.
The text was updated successfully, but these errors were encountered: