Merge pull request #31371 from gnidorah/sway

sway module: passthrough sway binary when needed
This commit is contained in:
Franz Pletz
2017-11-24 10:03:41 +01:00
committed by GitHub

View File

@@ -8,8 +8,11 @@ let
swayWrapped = pkgs.writeScriptBin "sway" ''
#! ${pkgs.stdenv.shell}
if [ "$1" != "" ]; then
sway-setcap "$@"
exit
fi
${cfg.extraSessionCommands}
PATH="${sway}/bin:$PATH"
exec ${pkgs.dbus.dbus-launch} --exit-with-session sway-setcap
'';
swayJoined = pkgs.symlinkJoin {