On 01.04.25 13:56, Jeremy Bícha wrote:
Please include what exact desktop environment you are using. What
xdg-desktop-portal-* packages do you have installed?

I'm using the sway window manager, portals for -wlr and -gtk are installed and running.

Possibly of note is that my neovim session is set to auto-darkmode itself, thus it calls

dbus-send --session --print-reply=literal --reply-timeout=1000 --dest=org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.Settings.Read string:'org.freedesktop.appearance' string:'color-scheme'

a couple of times per second (notionally every three seconds, but I have too many editor windows open).

Watching the process after restarting it, with ps, shows a slow increase in memory use and CPU time (started off at 9%, now at 13% after half an hour or so). So my current suspicion is that there's some request queue in there that doesn't get cleaned up properly, and as soon as that queue is long enough for CPU to reach 100% all hell breaks loose.

To verify that I started to hammer it with those dbus requests, which made the process's CPU load creep up much faster (about 1% per minute). The point is that after stopping these dbus-send loops the CPU time of "xdg-desktop-portal" does *not* go back down, instead it continues its slow creep towards 100%.


--
-- Matthias Urlichs

Reply via email to