Open se7en-x230 opened 1 year ago
To add to this:
mw -Y
from st, I've seen the notification work correctly through dwmblocksDISPLAY
variableMy systemctl status --user dunst
output:
notify-send
still works outside of the context of mutt-wizard
I have this issue. If I spawn neomutt
through a dwm keybind through /bin/sh -c st -e neomutt
, I am unable to compose an email using $EDITOR, and if I try to fetch new emails I get the same org.freedesktop.Notifications
error. If I spawn neomutt
using my shell (zst) in st it all works as expected.
Certainly an interesting issue, and I still have not figured out what causes it. Maybe it's a shell thing, that would explain the $EDITOR variable perhaps not being set.
I have the same issue and I have fixed it.
I think it's because the DISPLAY
environment variable is not set.
To fix this, add this line in .xinitrc
file
systemctl --user import-environment DISPLAY
For Luke's voidrice config, it is in $HOME/.config/x11/xinitrc
However, this is only for systemd.
Since Luke's LARBS is meant for any Arch or Artix Linux-based system, I guess Luke won't accept adding this line in his xinitrc
file. 🤪
Perhaps the shell that spawns notify-send
doesn't have $DISPLAY set, but the user shell (that spawned the X11 session) does. In this case another approach to solving this problem would be to spawn X11 using /bin/sh, but if the issue is only present when spawning neomutt using dwm keybinds I would probably just set the dwm shell used to spawn programs to whatever my user shell is. (zsh)
Are you using larbs?
No, but I'm using dwm, st and of course mutt-wizard.
Arch DWM (your setup) Xorg dunst
for whatever reasons on 2 machines the notification are not working and I can't find out why
noitfy-send/dunstify works with other apps