Commit d29e6a52 authored by linsui's avatar linsui Committed by Anderson Torres
Browse files

variety: fix script shell

The scripts are copied to the user directory and they are not updated with the package. When the bash path is changed, the shebang will stop working. This patch change the code so that the bash is called directly instead of relying on the shebang.
parent 779c32ab
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -75,10 +75,9 @@ python3.pkgs.buildPythonApplication rec {
    substituteInPlace variety_lib/varietyconfig.py \
      --replace "__variety_data_directory__ = \"../data\"" \
                "__variety_data_directory__ = \"$out/share/variety\""
    substituteInPlace data/scripts/set_wallpaper \
      --replace /bin/bash ${runtimeShell}
    substituteInPlace data/scripts/get_wallpaper \
      --replace /bin/bash ${runtimeShell}
    substituteInPlace variety/VarietyWindow.py \
      --replace '[script,' '["${runtimeShell}", script,' \
      --replace 'check_output(script)' 'check_output(["${runtimeShell}", script])'
  '';

  meta = with lib; {