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

lingering open windows #5

Closed
dnut opened this issue Jul 4, 2022 · 1 comment
Closed

lingering open windows #5

dnut opened this issue Jul 4, 2022 · 1 comment

Comments

@dnut
Copy link
Owner

dnut commented Jul 4, 2022

Some library interacts with the clipboard by opening a hidden window that you never see. Usually I don't see this unless my computer sits idly for a long time, and then I come back to see a huge number of anonymous windows in my dock in gnome. They close immediately when I click on them, or they all close at once if I restart this service.

This problem is not straightforward to solve. It may require gnome to implement the wlr standard, which they have stated explicitly they are not interested in doing. Otherwise there is writing an integration with gnome but I think this API is supposed to be private. More research is needed.

An alternative approach would be to simply restart the clipboard tracking process more frequently rather than only waiting for EMFILE error to restart. If the process restarts every minute for example, that may prevent a huge number of these windows from accumulating. This restarting behavior could be made customizable as part of the implementation for #2.

dnut added a commit that referenced this issue Jul 28, 2022
… of looping shell script, and #5 "lingering open windows" by terminating every 10 minutes
@dnut
Copy link
Owner Author

dnut commented Jul 28, 2022

solved by killing the process every 10 minutes

@dnut dnut closed this as completed Jul 28, 2022
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

1 participant