Changing the freemind wrapper, so it doesn't clear the environment at freemind running.
It did annoy loosing LANG, and XAUTH things, which use to work fine in other programs. I checked, and it works for me, seeing no segfault as it was written. svn path=/nixpkgs/trunk/; revision=17795
This commit is contained in:
parent
507f7fb86e
commit
bcc742adc1
@ -9,8 +9,6 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
buildInputs = [jdk ant];
|
buildInputs = [jdk ant];
|
||||||
|
|
||||||
inherit jre;
|
|
||||||
|
|
||||||
phases="unpackPhase buildPhase installPhase";
|
phases="unpackPhase buildPhase installPhase";
|
||||||
|
|
||||||
buildPhase="ant dist";
|
buildPhase="ant dist";
|
||||||
@ -29,13 +27,10 @@ stdenv.mkDerivation {
|
|||||||
sed -i 's/which/type -p/' $out/nix-support/dist/freemind.sh
|
sed -i 's/which/type -p/' $out/nix-support/dist/freemind.sh
|
||||||
cat > $out/bin/freemind << EOF
|
cat > $out/bin/freemind << EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# using pure env has removed the segfault for me :-)
|
export PATH=${args.coreutils}/bin:${args.gnugrep}/bin:"$PATH"
|
||||||
exec env -i sh -c "
|
export JAVA_HOME="${jre}"
|
||||||
export PATH=\"${args.coreutils}/bin:${args.gnugrep}/bin\";
|
export LIBXCB_ALLOW_SLOPPY_LOCK=true
|
||||||
export DISPLAY=\"\$DISPLAY\";
|
$out/nix-support/dist/freemind.sh
|
||||||
export JAVA_HOME=\"$jre\";
|
|
||||||
export LIBXCB_ALLOW_SLOPPY_LOCK=true;
|
|
||||||
$out/nix-support/dist/freemind.sh"
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
chmod +x $out/{bin/freemind,nix-support/dist/freemind.sh}
|
chmod +x $out/{bin/freemind,nix-support/dist/freemind.sh}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user