3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs
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
..
applications sway: Make it possible to use exec in extraSessionCommands 2020-04-22 17:09:20 +02:00
build-support Merge pull request #85680 from NixOS/fix-srconly 2020-04-21 22:45:34 +00:00
common-updater
data
desktops
development Merge pull request #83054 from peterhoeg/u/icr 2020-04-22 20:31:35 +08:00
games
misc Merge pull request #85679 from Omoroca13/pcsx2 2020-04-22 16:10:01 +02:00
os-specific
servers Merge pull request #79840 from knl/update-oauth2_proxy-to-5.0.0 2020-04-22 12:15:07 +02:00
shells Merge pull request #85677 from dywedir/oil 2020-04-22 09:23:39 +02:00
stdenv
test
tools sile: 0.10.3 -> 0.10.4 2020-04-22 08:21:20 +02:00
top-level Merge pull request #83054 from peterhoeg/u/icr 2020-04-22 20:31:35 +08:00