| 1 | Reported as <https://github.com/sgimenez/laby/pull/68>
|
| 2 |
|
| 3 | diff --git a/build b/build
|
| 4 | index 992a9e3..0df74d9 100755
|
| 5 | |
| 6 | |
| 7 | @@ -7,7 +7,6 @@ source build.conf || exit 1
|
| 8 |
|
| 9 | export PREFIX=${PREFIX-/usr}
|
| 10 | export DATADIR=${DATADIR-${PREFIX}/share}
|
| 11 | -export TMPDIR=${TMPDIR-/tmp}
|
| 12 |
|
| 13 | export PROJECT_NAME=${PROJECT_NAME-unknown}
|
| 14 | export PROJECT_VERSION=${PROJECT_VERSION-unknown}
|
| 15 | diff --git a/src/config.sh b/src/config.sh
|
| 16 | index 19d4160..9338aad 100644
|
| 17 | |
| 18 | |
| 19 | @@ -29,5 +29,4 @@ let build_ocaml = "${OCAML_VERSION}"
|
| 20 | let build_lablgtk = "${BUILD_LABLGTK}"
|
| 21 | let build_lablgtk_sourceview = "${BUILD_LABLGTKSV}"
|
| 22 | let _ = Res.sys_data_dir := "${DATADIR}"
|
| 23 | -let _ = Res.sys_tmp_dir := "${TMPDIR}"
|
| 24 | EOF
|
| 25 | diff --git a/src/laby.ml b/src/laby.ml
|
| 26 | index b77f2b2..e17acb9 100644
|
| 27 | |
| 28 | |
| 29 | @@ -48,6 +48,7 @@ let opts =
|
| 30 |
|
| 31 | let _ =
|
| 32 | Printexc.record_backtrace true;
|
| 33 | + Res.sys_tmp_dir := Filename.get_temp_dir_name ();
|
| 34 | Run.init
|
| 35 | ~name:Config.project_name
|
| 36 | ~conf:(conf, ["conf"])
|
| 37 | --
|
| 38 | 2.34.1
|
| 39 |
|