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

issue starting dwmblocks after rewrite #53

Open
2084x opened this issue Nov 23, 2023 · 9 comments
Open

issue starting dwmblocks after rewrite #53

2084x opened this issue Nov 23, 2023 · 9 comments

Comments

@2084x
Copy link

2084x commented Nov 23, 2023

Hi there, after you did the rewrite recently, I am having trouble getting dwmblocks to start the way I would like it to.

I run dwmblocks from within dwm.c using this function:

void
runAutostart(void) {
	system("killall -q dwmblocks; dwmblocks &");
}

This is so that dwmblocks can restart alongside dwm when I kill -HUP dwm.

This all worked fine until the rewrite, now dwmblocks won't start at all this way, instead I just get the default "dwm 6.4" text.

If I run dwmblocks from the command line, it will work fine until I kill -HUP dwm, then it freezes.
If I start dwmblocks in my xprofile or something, it appears but isn't clickable and will freeze when dwm is sent kill -HUP.

Any idea why this might be happening now? Hope you can help!

@UtkarshVerma
Copy link
Owner

UtkarshVerma commented Nov 24, 2023

This shouldn't happen. I tried sending kill -HUP $(pidof dwm) and my dwm restarted without dwmblocks dying. This is most likely an issue in your setup.

@2084x
Copy link
Author

2084x commented Nov 27, 2023

it's not just the kill signals, it won't start at all on boot. I have no idea why. nothing has changed on my end, so I'm a bit lost.

oh well I guess I'll stay with the old version for now.

@UtkarshVerma
Copy link
Owner

Check #56 as it might be related. The rewrite exits when it doesn't find the specified scripts.

@2084x
Copy link
Author

2084x commented Jan 14, 2024

I've gone through that issue and tried a whole lot of things like changing ~ to $HOME, sourcing my zprofile in different spots, exporting $PATH before calling dwmblocks etc... none of it made any difference. even when my only block was just calling date, it still would not start.

In the end I've removed my autostart patch from dwm and started dwmblocks from my xprofile. everything works fine that way. all is good now :)

@UtkarshVerma
Copy link
Owner

To better debug this, save dwm's stderr output to a logfile and then examine it. It may indicate why it could not start dwmblocks.

exec dwm 2>/tmp/dwm.log

@2084x
Copy link
Author

2084x commented Jan 15, 2024

ok, so when autostarting with dwm and only using a single block calling date, I get:

$ cat /tmp/dwm.log
error: could not obtain exit status for "date" block

@UtkarshVerma
Copy link
Owner

UtkarshVerma commented Jan 16, 2024

That sheds some light on it. Most likely, the system call has something to do here. Will investigate this when I get the time. In the meanwhile, use an older release or simply launch dwmblocks-async from .xinitrc like I do.

@UtkarshVerma UtkarshVerma reopened this Jan 16, 2024
@DasHammett
Copy link

I can confirm I have the same issue.
Starging dwmblocks with the autostart patch fails, but manually launching dwmblocks once dwm is started works as expected.

@aaronshahriari
Copy link

I also have the same issue. I am using dwm autostart patch with this script

#!/usr/bin/env bash

dwmblocks &
picom &
autorandr --load home-two &
feh --bg-fill ~/.config/i3/wallpapers/desktop_wall.png ~/.config/i3/wallpapers/desktop_wall.png &
# feh --no-fehbg --bg-center ~/.config/i3/wallpapers/desktop_wall.png &
xinput set-prop "pointer:Logitech G502" "libinput Accel Speed" -0.8 &

and dwmblocks & will not run when booting into displaymanager.

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

No branches or pull requests

4 participants