sway: remove swaybg from path

Avoids polluting the environment for sway's children.
This commit is contained in:
V
2021-01-18 17:56:31 +01:00
parent 979e6e67d3
commit 29b14dfd9b
3 changed files with 18 additions and 3 deletions
@@ -1,5 +1,5 @@
{ lib, stdenv
, sway-unwrapped, swaybg
, sway-unwrapped
, makeWrapper, symlinkJoin, writeShellScriptBin
, withBaseWrapper ? true, extraSessionCommands ? "", dbus
, withGtkWrapper ? false, wrapGAppsHook, gdk-pixbuf, glib, gtk3
@@ -42,7 +42,6 @@ in symlinkJoin {
${optionalString withGtkWrapper "gappsWrapperArgsHook"}
wrapProgram $out/bin/sway \
--prefix PATH : "${swaybg}/bin" \
${optionalString withGtkWrapper ''"''${gappsWrapperArgs[@]}"''} \
${optionalString (extraOptions != []) "${concatMapStrings (x: " --add-flags " + x) extraOptions}"}
'';