summaryrefslogtreecommitdiff
path: root/audio/audacity/patches/patch-am
blob: cc16a6d26168050e0cbb8697596211304e19ab1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-am,v 1.6 2015/04/20 13:38:23 rodent Exp $

Don't hardcode TMPDIR.

--- src/AudacityApp.cpp.orig	2015-03-02 01:06:58.000000000 +0000
+++ src/AudacityApp.cpp
@@ -1096,7 +1096,7 @@ bool AudacityApp::OnInit()
       * The "share" and "share/doc" directories in their install path */
    #ifdef __WXGTK__
    /* On Unix systems, the default temp dir is in /var/tmp. */
-   defaultTempDir.Printf(wxT("/var/tmp/audacity-%s"), wxGetUserId().c_str());
+   defaultTempDir.Printf(wxT("%s/.audacity1.2-%s"), home.c_str(), wxGetUserId().c_str());
 
    wxString pathVar = wxGetenv(wxT("AUDACITY_PATH"));
    if (pathVar != wxT(""))