mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 18:59:47 +01:00
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
28e90a978e
commit
cb76bfe06c
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ let
|
|||
extraCommands = builtins.concatStringsSep " "
|
||||
(map (f: "&& ${f}") cfg.systemd.extraCommands);
|
||||
systemdActivation = ''
|
||||
exec "${pkgs.dbus}/bin/dbus-update-activation-environment --systemd ${variables} ${extraCommands}"
|
||||
${pkgs.dbus}/bin/dbus-update-activation-environment --systemd ${variables} ${extraCommands}
|
||||
'';
|
||||
|
||||
toValue = val:
|
||||
|
|
|
@ -62,6 +62,6 @@ extra config
|
|||
|
||||
|
||||
### 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