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

Don't run dunstctl if dunst daemon isn't active #407

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

ymeister
Copy link

Description

Running dunstctl without active dunst daemon causes a several second delay of awaiting the DBus reply with the following message:

Error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Failed to communicate with dunst, is it running? Or maybe the version is outdated. You can try 'dunstctl debug' as a next debugging step.

The fix adds an additional check for whether there exists a running dunst process in the background before running dunstctl.

Fixes #348

Checklist:

  • I have performed a self-review of my own code/checked that ShellCheck succeeds
  • I have made corresponding changes to the documentation (if applicable)

@ymeister ymeister changed the title Don't run dunstctl if dunst isn't running Don't run dunstctl if dunst daemon isn't active Dec 25, 2023
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

Successfully merging this pull request may close these issues.

Betterlockscreen commands take way too much time
1 participant