hyprland: onChange: check XDG_RUNTIME_DIR as well
The previous check false negatives in Hyprland >= 0.40.0
(cherry picked from commit 7ac529c221
)
This commit is contained in:
parent
391ca6e950
commit
c05d7204a9
|
@ -237,7 +237,8 @@ in {
|
||||||
|
|
||||||
onChange = lib.mkIf (cfg.package != null) ''
|
onChange = lib.mkIf (cfg.package != null) ''
|
||||||
( # Execute in subshell so we don't poision environment with vars
|
( # Execute in subshell so we don't poision environment with vars
|
||||||
if [[ -d "/tmp/hypr" ]]; then
|
XDG_RUNTIME_DIR=''${XDG_RUNTIME_DIR:-/run/user/$(id -u)}
|
||||||
|
if [[ -d "/tmp/hypr" || -d "$XDG_RUNTIME_DIR/hypr" ]]; then
|
||||||
for i in $(${cfg.finalPackage}/bin/hyprctl instances -j | jq ".[].instance" -r); do
|
for i in $(${cfg.finalPackage}/bin/hyprctl instances -j | jq ".[].instance" -r); do
|
||||||
${cfg.finalPackage}/bin/hyprctl -i "$i" reload config-only
|
${cfg.finalPackage}/bin/hyprctl -i "$i" reload config-only
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue