Description: Disable update check as it's useless for a packaged version
Author: Jakob Haufe <sur5r@sur5r.net>
-diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
-index 4375716..e0aa901 100644
---- a/src/mainwindow.cpp
-+++ b/src/mainwindow.cpp
-@@ -232,7 +232,7 @@ void MainWindow::lazyInit() {
+Index: minitube/src/mainwindow.cpp
+===================================================================
+--- minitube.orig/src/mainwindow.cpp
++++ minitube/src/mainwindow.cpp
+@@ -218,7 +218,7 @@ void MainWindow::lazyInit() {
ChannelAggregator::instance()->start();
Author: Jakob Haufe <sur5r@sur5r.net>
Bug-Debian: http://bugs.debian.org/644935
-diff --git a/src/temporary.cpp b/src/temporary.cpp
-index 913d244..3e5e89f 100644
---- a/src/temporary.cpp
-+++ b/src/temporary.cpp
-@@ -22,51 +22,26 @@ $END_LICENSE */
+Index: minitube/src/temporary.cpp
+===================================================================
+--- minitube.orig/src/temporary.cpp
++++ minitube/src/temporary.cpp
+@@ -21,51 +21,26 @@ $END_LICENSE */
+ #include "temporary.h"
#include "constants.h"
- #include "compatibility/pathsservice.h"
--static QList<QString> paths;
+-static QVector<QString> paths;
-#ifdef APP_LINUX
-static QString userName;
-#endif
Temporary::Temporary() { }
QString Temporary::filename() {
-- static const QString tempDir = Paths::getTempLocation();
+- static const QString tempDir = QStandardPaths::writableLocation(QStandardPaths::TempLocation);
+ QTemporaryFile *tempfile = new QTemporaryFile(QDir::tempPath() + "/" + Constants::UNIX_NAME + "-XXXXXX");
+ tempfiles += tempfile;
+ delete tempfile;
}
}
-
-diff --git a/src/temporary.h b/src/temporary.h
-index de5e24d..b8fbba9 100644
---- a/src/temporary.h
-+++ b/src/temporary.h
+Index: minitube/src/temporary.h
+===================================================================
+--- minitube.orig/src/temporary.h
++++ minitube/src/temporary.h
@@ -23,6 +23,7 @@ $END_LICENSE */
#include <QtCore>