]> git.sur5r.net Git - minitube/commitdiff
username in temp file name
authorFlavio <flavio@odisseo.local>
Mon, 31 Jan 2011 13:21:31 +0000 (14:21 +0100)
committerFlavio <flavio@odisseo.local>
Mon, 31 Jan 2011 13:21:31 +0000 (14:21 +0100)
src/MediaView.cpp

index 0fd49b27ca97eebfd944133661b8357fe9a9ed6f..613ebeccf56c102fb6dfc5ca012bd9a41724f364 100644 (file)
@@ -328,8 +328,13 @@ void MediaView::gotStreamUrl(QUrl streamUrl) {
     }
     video->disconnect(this);
 
+
     QString tempDir = QDesktopServices::storageLocation(QDesktopServices::TempLocation);
+#ifdef Q_WS_X11
+    QString tempFile = tempDir + "/minitube-" + getenv("USERNAME") + ".mp4";
+#else
     QString tempFile = tempDir + "/minitube.mp4";
+#endif
     if (QFile::exists(tempFile) && !QFile::remove(tempFile)) {
         qDebug() << "Cannot remove temp file";
     }