Skip to content

D-Bus timeout results in unexpected theme changes #55

@gwuen

Description

@gwuen

The query_command for dbus includes a hardcoded timeout of 1000 ms. When it fails because of this, the theme is changed back to the fallback. On a loaded system, this can lead to unexpected theme changes and even flickering if the current system theme is not the same as the fallback and the command only fails every few runs.

My preferred solution would be for (temporary) timeouts to be ignored. Increasing the timeout might do the trick on some systems, on others it might still be too short. Neovim (at least under Linux) correctly sets the background color based on Terminal preference the terminal's response to the OSC 11 query on startup, so there would still be some kind of fallback, even if fetching the preference fails from the start.

The fallback option as it currently is implemented also serves as the fallback for when the system reports no preference (as is the case for GNOME, see #40). If some fallback for failures of the command must remain, it should be something else.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions