$NetBSD: patch-am,v 1.8 2019/02/10 17:14:42 nia Exp $

Don't hardcode TMPDIR.

--- src/AudacityApp.cpp.orig	2018-02-14 07:11:20.000000000 +0000
+++ src/AudacityApp.cpp
@@ -1281,7 +1281,7 @@ bool AudacityApp::OnInit()
    wxString home = wxGetHomeDir();
 
    /* On Unix systems, the default temp dir is in /var/tmp. */
-   defaultTempDir.Printf(wxT("/var/tmp/audacity-%s"), wxGetUserId());
+   defaultTempDir.Printf(wxT("%s/audacity-%s"), home.c_str(), wxGetUserId());
 
 // DA: Path env variable.
 #ifndef EXPERIMENTAL_DA
