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

Won't suspend app "closed" to systray #45

Open
haarp opened this issue Dec 19, 2023 · 0 comments
Open

Won't suspend app "closed" to systray #45

haarp opened this issue Dec 19, 2023 · 0 comments

Comments

@haarp
Copy link

haarp commented Dec 19, 2023

Hi,

( nice tool! fyi, I just made a Gentoo ebuild for it :) )

xsuspender seems to be working so far. However, I noticed that it won't suspend certain apps that are "closed" but really just "minimize" to the systray. In this case, Signal (Electron-based 🙄)

How it's started: firejail signal-desktop --use-tray-icon

Config:

[Default]
suspend_delay = 5
resume_every = 59
resume_for = 5
send_signals = true
only_on_battery = false
auto_suspend_on_battery = true
downclock_on_battery = 0

[Signal]
match_wm_class_contains = signal
suspend_subtree_pattern = .

When the window loses focus: 👍

(xsuspender:2728894): xsuspender-DEBUG: 14:13:14.697: Suspending window in 5s: 0x4a00003 (1207188): Signal
(xsuspender:2728894): xsuspender-DEBUG: 14:13:19.823: kill -STOP 1207188
(xsuspender:2728894): xsuspender-DEBUG: 14:13:19.824: Exec: pstree 1207188 (.) | kill -STOP
(xsuspender:2728894): xsuspender-DEBUG: 14:13:19.824:       kill -STOP 1207188
(xsuspender:2728894): xsuspender-DEBUG: 14:13:19.845:       kill -STOP 1207191 1207192 1207354 1207433 1499504
(xsuspender:2728894): xsuspender-DEBUG: 14:13:19.863:       kill -STOP 1207347
(xsuspender:2728894): xsuspender-DEBUG: 14:13:19.897:       kill -STOP 1207194

When the window is "closed" to systray: 👎

(xsuspender:2728894): xsuspender-DEBUG: 14:13:56.384: Suspending window in 5s: 0x4a00003 (1207188): Signal
(then...nothing, unsuspended)

Thanks!

edit: Other "closed" windows are affected aswell. Discord, or birdtray'ed Thunderbird. Probably because from xsuspender's perspective, the window simply disappeared?

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