<refsect1 id='files'><title>FILES</title>
<variablelist>
<varlistentry>
-<term>/usr/share/doc/sst/sst.doc</term>
+<term><filename>/usr/share/doc/sst/sst.doc</filename></term>
<listitem>
<para>Documentation file.</para>
</listitem>
</varlistentry>
<varlistentry>
-<term>/usr/tmp/sst-input.log</term>
+<term><filename>$TMPDIR/sst-input.log</filename></term>
<listitem>
-<para>Where user input is saved to (send this with your bug reports).</para>
+<para>Where user input is saved to (send this with your bug reports).
+If TMPDIR is not set is defaults to <filename>/tmp</filename>.</para>
</listitem>
</varlistentry>
<varlistentry>
-<term>emsave.trk</term>
+<term><filename>emsave.trk</filename></term>
<listitem>
<para>Save file produced by EMEXIT command.</para>
</listitem>
sys.stderr.write("usage: sst [-t] [-x] [startcommand...].\n")
raise SystemExit, 1
# where to save the input in case of bugs
+ if "TMPDIR" in os.environ:
+ tmpdir = os.environ['TMPDIR']
+ else:
+ tmpdir = "/tmp"
try:
- logfp = open("/tmp/sst-input.log", "w")
+ logfp = open(os.path.join(tmpdir, "sst-input.log"), "w")
except IOError:
sys.stderr.write("sst: warning, can't open logfile\n")
sys.exit(1)