Replace hardcoded "/tmp" by RDTempFile()

This commit is contained in:
Alban Peignier
2014-09-05 10:47:01 +02:00
parent 3fc6006444
commit f6dc4712d4
4 changed files with 3 additions and 4 deletions

View File

@@ -354,7 +354,6 @@
* Ripper Settings
*/
#define RIPPER_BAR_INTERVAL 500
#define RIPPER_TEMP_DIR "/tmp"
#define RIPPER_TEMP_WAV "rdlibrary_rip.wav"
#define RIPPER_TEMP_PEAK "rdlibrary_rip.dat"
#define RIPPER_CDDB_USER "rdlibrary"

View File

@@ -65,7 +65,7 @@ bool RDTextFile(const QString &data)
proc->launch("");
delete proc;
#else
strcpy(tmpfile,"/tmp/rdreportXXXXXX");
strcpy(tmpfile,RDTempDir()+"/rdreportXXXXXX");
int fd=mkstemp(tmpfile);
if(fd<0) {
QMessageBox::warning(NULL,"File Error","Unable to create temporary file");