betterlockscreen icon indicating copy to clipboard operation
betterlockscreen copied to clipboard

Betterlockscreen delays and shows freedesktop.DBUS error in awesomewm

Open arionrefat opened this issue 4 years ago • 12 comments
trafficstars

It does work in i3wm, qtile and dwm on the same system

image

arionrefat avatar Aug 20 '21 10:08 arionrefat

Hey, it seems that your dunst-setup is not completely working, could you try the following command used by Betterlockscreen:

dunstctl is-paused
dunstctl set-paused true
dunstctl set-paused false

And also please post the output of "./betterlockscreen -v" :)

SebTM avatar Aug 20 '21 22:08 SebTM

Here are the output of the dunstctl commands image

arionrefat avatar Aug 21 '21 08:08 arionrefat

Now, I use i3wm, dwm, qtile and awesomewm. I use dunst for i3wm and dwm. For qtile I use the builtin notification widget and for awesomewm I use the builtin notification module(naughty). Therefore when I'm in awesomewm or in qtile, dunst in turned off. But only in awesomewm the following problem persists. In qtile it works fine, despite I don't use dunst there also.

arionrefat avatar Aug 21 '21 08:08 arionrefat

Here is the output of ./betterlockscreen -v image

arionrefat avatar Aug 21 '21 08:08 arionrefat

Okay, I understand, will think about a solution for that - if you have an idea I'm open for it :)

SebTM avatar Aug 21 '21 17:08 SebTM

Sure, Thanks.

arionrefat avatar Aug 21 '21 19:08 arionrefat

Would it help you, introducing a new option dunst_enabled which besides DUNST_INSTALLED would be checked if dunst should be handled by Betterlockscreen? So you could set this in betterlockscreenrc with a shell-expression you like to, to determinate if dunst is used/usefull and set true if so?

SebTM avatar Aug 21 '21 20:08 SebTM

That's really a great idea, Yes, that would really help me.

arionrefat avatar Aug 22 '21 06:08 arionrefat

So did you fix this yet? If yes how do I actually get it to stop doing this with awesome?

gianmarcogg03 avatar May 26 '22 09:05 gianmarcogg03

Sorry, haven't had time to work on this - but there is a somehow functioning demo implementation you could adjust for your needs in the Next-PR :)

SebTM avatar May 27 '22 08:05 SebTM

I have the same issue with AwesomeWM, no problems with Qtile tho. I don't understand what causes that ? Any fixes yet ?

nullbyto avatar Aug 12 '22 17:08 nullbyto

I found a workaround in #1285 to disable naughty in awesome. Add this to rc.lua

package.loaded["naughty.dbus"] = {}

This will make dunst work normally and also betterlockscreen.

nullbyto avatar Aug 12 '22 18:08 nullbyto

@nullbyto Thanks for pointing out - I've included the solution in the readme so it should be easy to find for future users. I would close the issue for now, please let me know if there is anything else :)

SebTM avatar Dec 26 '22 06:12 SebTM