river: fix systemd activation (#5055)
The `exec` command does not do any shell parsing and does not understand the `&&` which is how the extraCommands are added after dbus activation. There doesn't seem to be a reason for `exec` here anyway so just remove it and allow shell parsing.
This commit is contained in:
parent
1d085ea444
commit
ecfffe3631
|
@ -9,7 +9,7 @@ let
|
||||||
extraCommands = builtins.concatStringsSep " "
|
extraCommands = builtins.concatStringsSep " "
|
||||||
(map (f: "&& ${f}") cfg.systemd.extraCommands);
|
(map (f: "&& ${f}") cfg.systemd.extraCommands);
|
||||||
systemdActivation = ''
|
systemdActivation = ''
|
||||||
exec "${pkgs.dbus}/bin/dbus-update-activation-environment --systemd ${variables} ${extraCommands}"
|
${pkgs.dbus}/bin/dbus-update-activation-environment --systemd ${variables} ${extraCommands}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
toValue = val:
|
toValue = val:
|
||||||
|
|
|
@ -62,6 +62,6 @@ extra config
|
||||||
|
|
||||||
|
|
||||||
### SYSTEMD INTEGRATION ###
|
### SYSTEMD INTEGRATION ###
|
||||||
exec "@dbus@/bin/dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP NIXOS_OZONE_WL XCURSOR_THEME XCURSOR_SIZE && systemctl --user stop river-session.target && systemctl --user start river-session.target"
|
@dbus@/bin/dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP NIXOS_OZONE_WL XCURSOR_THEME XCURSOR_SIZE && systemctl --user stop river-session.target && systemctl --user start river-session.target
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue