1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/window-managers/sway
Michael Weiss 1a047c4a8e
sway: Make it possible to use exec in extraSessionCommands
This is useful for use-cases like this (logging to journald):
```
programs.sway.extraSessionCommands = ''
  if [ -z "$_SWAY_DID_SYSTEMD_CAT" ]; then
    export _SWAY_DID_SYSTEMD_CAT=1
    exec ${config.systemd.package}/bin/systemd-cat -t sway "$0" "$@"
  fi
  # ... (potentially also another exec)
'';
```

Without this change the rest of the extraSessionCommands won't be
executed after the exec since the whole extraSessionCommands block would
be skipped during the re-execution (_SWAY_WRAPPER_ALREADY_EXECUTED is
already set).
2020-04-22 17:09:20 +02:00
..
bg.nix
default.nix treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
idle.nix
load-configuration-from-etc.patch
lock-effects.nix
lock-fancy.nix
lock.nix
sway-config-no-nix-store-references.patch
wrapper.nix sway: Make it possible to use exec in extraSessionCommands 2020-04-22 17:09:20 +02:00