uwsm: autostart services don't inherit env vars from compositor
I have this in my hyprland config file:
$cursor-theme = capitaine-cursors
$cursor-size = 48
env = XCURSOR_SIZE,$cursor-size
env = XCURSOR_THEME,$cursor-theme
exec = hyprctl setcursor $cursor-theme $cursor-size
exec = gsettings set org.gnome.desktop.interface cursor-theme $cursor-theme
exec = gsettings set org.gnome.desktop.interface cursor-size $cursor-size
exec = uwsm finalize XCURSOR_THEME XCURSOR_SIZE
I have corectrl set up as an autostart service, which ends up using the wrong cursor. Could it be because autostart services are started before the compositor signals readiness?
I checked the environment variables like this: cat /proc/$(pidof corectrl)/environ | tr '\0' '\n'
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 29 (29 by maintainers)
Commits related to this issue
- Add Hyprland plugin with HYPRLAND_NO_SD_NOTIFY=true fixes #14 — committed to Mich-iel/uwsm by Vladimir-csp 3 years ago
oops
I built Hyprland from source and removed the calls to
sd_notify():Now everything works as expected 🎉