Skip to content

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

Merged
SebTM merged 1 commit intobetterlockscreen:nextfrom
ymeister:next
Jun 20, 2024
Merged

Don't run dunstctl if dunst daemon isn't active#407
SebTM merged 1 commit intobetterlockscreen:nextfrom
ymeister:next

Conversation

@ymeister
Copy link
Contributor

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

2 participants