--- /dev/null
+minitube (3.6.1-1) unstable; urgency=medium
+
+ Starting with 3.6, Minitube is using the invidious API. The Google API
+ key is no longer needed.
+
+ -- Jakob Haufe <sur5r@sur5r.net> Sat, 03 Oct 2020 22:01:10 +0200
+
+minitube (2.5.1-1) unstable; urgency=medium
+
+ Starting with 2.4, minitube supports the new YouTube API version 3.
+
+ As this API version is the only one supprted by now, it is necessary to
+ acquire an API key from Google.
+
+ In order to do so, create a "Browser Key" at
+ https://console.developers.google.com
+
+ Minitube reads this key from the GOOGLE_API_KEY environment variable.
+
+ -- Jakob Haufe <sur5r@sur5r.net> Thu, 07 Jan 2016 23:13:57 +0100
+
+minitube (1.8-1) unstable; urgency=low
+
+ Starting with 1.8-1, minitube no longer depends on a particular phonon
+ backend, and can thus no longer directly depend on all codec-related
+ packages.
+
+ Users of the GStreamer backend might want to
+
+ * apt-get install gstreamer0.10-plugins-good gstreamer0.10-x
+
+ and maybe
+
+ * apt-get install gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad
+
+ as well.
+
+ The VLC backend seems to pull in all necessary dependencies by itself.
+
+ -- Jakob Haufe <sur5r@sur5r.net> Sun, 23 Sep 2012 16:55:34 +0200
--- /dev/null
+minitube (3.6.1-1) unstable; urgency=medium
+
+ * New upstream version 3.6.1
+ * Rework patch: disable-update-check
+ * Drop API KEY
+ * Update manpage
+
+ -- Jakob Haufe <sur5r@debian.org> Sat, 03 Oct 2020 20:23:01 +0000
+
+minitube (3.4-1) unstable; urgency=medium
+
+ * New upstream version 3.4
+ * Refresh proper-tempfiles
+ * Update API key
+ * Bump Standards-Version (no changes needed)
+ * Let Vcs-* point to salsa
+
+ -- Jakob Haufe <sur5r@debian.org> Sun, 31 May 2020 20:40:54 +0000
+
+minitube (3.1-1) unstable; urgency=medium
+
+ * New upstream version 3.1
+ * Update watch file to use releases instead of tags
+ * Drop patches/Update-AppStream-data, applied upstream
+ * Update build dependencies
+ * Drop custom compression options
+ * Install AppStream files to /usr/share/metainfo
+ * Update my mail address
+
+ -- Jakob Haufe <sur5r@debian.org> Sun, 14 Jul 2019 19:08:28 +0000
+
+minitube (2.9-1) unstable; urgency=medium
+
+ * New upstream version
+ * Refresh patches
+ * Switch priority to optional as extra is deprecated
+ * Update AppStream data
+ * Drop cdbs and switch to DH 11
+ * Ship Google API key (Closes: #852601)
+ * Bump Standards-Version to 4.2.0 (no changes required)
+
+ -- Jakob Haufe <sur5r@sur5r.net> Sun, 12 Aug 2018 18:51:43 +0000
+
+minitube (2.5.2-2) unstable; urgency=medium
+
+ * Replace dbus-x11 dependency (Closes: #836115)
+ * Bump Standards-Version to 3.9.8 (no changes required)
+
+ -- Jakob Haufe <sur5r@sur5r.net> Sun, 25 Sep 2016 22:27:09 +0200
+
+minitube (2.5.2-1) unstable; urgency=medium
+
+ * New upstream version
+ * Drop patch: assure-quit-keybinding, unneeded with Qt5
+ * Depend on libqt5sql5-sqlite (Closes: #820620)
+ * Switch Vcs-* URLs to https
+
+ -- Jakob Haufe <sur5r@sur5r.net> Wed, 13 Apr 2016 18:23:32 +0200
+
+minitube (2.5.1-1) unstable; urgency=medium
+
+ * New upstream version
+ * Point watchfile to Github as Gitorious is gone
+ * Update URL in debian/copyright and fix typo
+ * Refresh patches
+ * Bump Standards-Version to 3.9.7 (no changes required)
+ * Remove menu file (See ctte #741573)
+
+ -- Jakob Haufe <sur5r@sur5r.net> Sun, 13 Mar 2016 22:16:30 +0100
+
+minitube (2.2-1) unstable; urgency=medium
+
+ * New upstream version (Closes: #757806)
+ * Bump Standards-Version to 3.9.5 (no changes required)
+
+ -- Jakob Haufe <sur5r@sur5r.net> Sat, 06 Sep 2014 21:19:24 +0200
+
+minitube (2.1.6-1) unstable; urgency=low
+
+ * New upstream version (Closes: #739480)
+ * Update watchfile to work with new Gitorious
+ * Refresh patches
+
+ -- Jakob Haufe <sur5r@sur5r.net> Sun, 15 Jun 2014 14:49:50 +0200
+
+minitube (2.0-1) unstable; urgency=low
+
+ * New upstream version
+ * Switch from hardening-wrapper to buildflags.mk
+ * Refresh patches:
+ - Drop gcc-4.7.patch, fixed upstream
+ - Rebuild assure-quit-keybinding
+ - Rebuild disable-update-check
+ * Update Standards-Version to 3.9.4
+ - Add Vcs-* control fields
+ - No further changes needed
+
+ -- Jakob Haufe <sur5r@sur5r.net> Thu, 23 May 2013 13:54:01 +0200
+
+minitube (1.9-1) unstable; urgency=low
+
+ * New upstream version (Closes: #673696)
+ * Refresh disable-update-check
+ * Refresh proper-tempfiles
+ * Use hardening-wrapper
+
+ -- Jakob Haufe <sur5r@sur5r.net> Sat, 29 Sep 2012 02:43:53 +0200
+
+minitube (1.8-1) unstable; urgency=low
+
+ * Ack NMU (thanks gregoa)
+ * New upstream version (Closes: #673696)
+ * Bump Standards-Version to 3.9.3 (no changes required)
+ * Bump debhelper compat level to 9
+ * Switch to xz compression
+ * No longer directly depend on GStreamer phonon backed
+
+ -- Jakob Haufe <sur5r@sur5r.net> Sun, 23 Sep 2012 19:52:04 +0200
+
+minitube (1.7-1.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Fix "ftbfs with GCC-4.7": add patch that adds missing include.
+ (Closes: #667281)
+
+ -- gregor herrmann <gregoa@debian.org> Wed, 09 May 2012 16:44:42 +0200
+
+minitube (1.7-1) unstable; urgency=low
+
+ * New upstream version (Closes: #658990)
+ * New patch: assure-quit-keybinding
+
+ -- Jakob Haufe <sur5r@sur5r.net> Wed, 15 Feb 2012 22:06:35 +0100
+
+minitube (1.6-1) unstable; urgency=low
+
+ * New upstream version (Closes: #650622, #647212)
+ * Recreate debian/patches/disable-update-check
+ * Recreate debian/patches/proper-tempfiles
+
+ -- Jakob Haufe <sur5r@sur5r.net> Wed, 07 Dec 2011 02:50:04 +0100
+
+minitube (1.5-2) unstable; urgency=low
+
+ * Do proper temporary file creation (Closes: #644935).
+
+ -- Jakob Haufe <sur5r@sur5r.net> Wed, 12 Oct 2011 23:06:30 +0200
+
+minitube (1.5-1.1) unstable; urgency=low
+
+ * Bump Standards-Version to 3.9.2 (no changes required)
+
+ -- Jakob Haufe <sur5r@sur5r.net> Sun, 14 Aug 2011 09:33:19 +0200
+
+minitube (1.5-1) unstable; urgency=low
+
+ * New upstream version (Closes: #637410)
+
+ -- Jakob Haufe <sur5r@sur5r.net> Fri, 12 Aug 2011 18:34:21 +0200
+
+minitube (1.4.3-1) unstable; urgency=low
+
+ * New upstream version (Closes: #623821)
+
+ -- Jakob Haufe <sur5r@sur5r.net> Fri, 10 Jun 2011 00:12:04 +0200
+
+minitube (1.4.2-1) unstable; urgency=low
+
+ * New upstream version
+
+ -- Jakob Haufe <sur5r@sur5r.net> Sun, 24 Apr 2011 19:30:24 +0200
+
+minitube (1.4.1-1) unstable; urgency=low
+
+ * New upstream version
+ * Disable update check, makes no sense for a packaged version (Closes:
+ #619941)
+
+ -- Jakob Haufe <sur5r@sur5r.net> Sun, 03 Apr 2011 20:38:04 +0200
+
+minitube (1.3-1) unstable; urgency=low
+
+ * New upstream version (Closes: #606670)
+
+ -- Jakob Haufe <sur5r@sur5r.net> Fri, 17 Dec 2010 00:23:23 +0100
+
+minitube (1.2-1) unstable; urgency=low
+
+ * New upstream version (Closes: #600070)
+
+ -- Jakob Haufe <sur5r@sur5r.net> Fri, 15 Oct 2010 01:48:10 +0200
+
+minitube (1.1-1) unstable; urgency=low
+
+ * New upstream version (Closes: #590320)
+ * Bump Standards-Version to 3.9.1 (no changes required)
+ * Add dependencies to dbus-x11 and gstreamer0.10-plugins-good
+
+ -- Jakob Haufe <sur5r@sur5r.net> Tue, 27 Jul 2010 23:04:09 +0200
+
+minitube (1.0-3) unstable; urgency=low
+
+ * Mention files with copyright by Nokia in debian/copyright. Thanks to Barry
+ deFreese for pointing it out.
+
+ -- Jakob Haufe <sur5r@sur5r.net> Wed, 09 Jun 2010 20:52:44 +0200
+
+minitube (1.0-2) unstable; urgency=low
+
+ * Make phonon and gstreamer dependencies more strict
+ * Remove now obsolete README.Debian
+ * Remove README.source template
+
+ -- Jakob Haufe <sur5r@sur5r.net> Thu, 06 May 2010 22:58:30 +0200
+
+minitube (1.0-1) unstable; urgency=low
+
+ * Initial release (Closes: #561012)
+
+ -- Jakob Haufe <sur5r@sur5r.net> Tue, 04 May 2010 21:51:02 +0200
+
--- /dev/null
+Source: minitube
+Section: video
+Priority: optional
+Maintainer: Jakob Haufe <sur5r@debian.org>
+Build-Depends: debhelper (>= 11), qtbase5-dev, qtchooser, qttools5-dev-tools, qtdeclarative5-dev, libqt5x11extras5-dev, libmpv-dev
+Standards-Version: 4.5.0
+Homepage: http://flavio.tordini.org/minitube
+Vcs-Browser: https://salsa.debian.org/sur5r/minitube
+Vcs-Git: https://salsa.debian.org/sur5r/minitube.git
+
+Package: minitube
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, default-dbus-session-bus | dbus-session-bus, libqt5sql5-sqlite
+Description: Native YouTube client
+ Minitube is a native YouTube client. With it you can watch YouTube videos in
+ a new way: you type a keyword, Minitube gives you an endless video stream.
+ .
+ Minitube does not require the Flash Player.
+ .
+ Minitube is not about cloning the original YouTube web interface, it aims to
+ create a new TV-like experience.
--- /dev/null
+This work was packaged for Debian by:
+
+ Jakob Haufe <sur5r@sur5r.net> on Sun, 10 Jan 2010 02:28:52 +0100
+
+It was downloaded from <https://github.com/flaviotordini/minitube>
+
+Upstream Author:
+
+ Flavio Tordini <flavio.tordini@gmail.com>
+
+Copyright:
+
+ <Copyright (C) 2010 Flavio Tordini>
+
+License:
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+Files with other copyright statement than: Copyright Flavio Tordnini, License GPL version 3
+-------------------------------------------------------------------------------------------
+
+
+src/flickcharm.cpp src/flickcharm.h
+
+ Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+ Contact: Qt Software Information (qt-info@nokia.com)
+
+ This file is part of the Graphics Dojo project on Qt Labs.
+
+ This file may be used under the terms of the GNU General Public
+ License version 2.0 or 3.0 as published by the Free Software Foundation
+ and appearing in the file LICENSE.GPL included in the packaging of
+ this file. Please review the following information to ensure GNU
+ General Public Licensing requirements will be met:
+ http://www.fsf.org/licensing/licenses/info/GPLv2.html and
+ http://www.gnu.org/copyleft/gpl.html.
+
+ If you are unsure which license is appropriate for your use, please
+ contact the sales department at qt-sales@nokia.com.
+
+ This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+ WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+
+src/minisplitter.cpp src/minisplitter.h
+
+ Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+
+ Contact: Qt Software Information (qt-info@nokia.com)
+
+ Commercial Usage
+
+ Licensees holding valid Qt Commercial licenses may use this file in
+ accordance with the Qt Commercial License Agreement provided with the
+ Software or, alternatively, in accordance with the terms contained in
+ a written agreement between you and Nokia.
+
+ GNU Lesser General Public License Usage
+
+ Alternatively, this file may be used under the terms of the GNU Lesser
+ General Public License version 2.1 as published by the Free Software
+ Foundation and appearing in the file LICENSE.LGPL included in the
+ packaging of this file. Please review the following information to
+ ensure the GNU Lesser General Public License version 2.1 requirements
+ will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+
+ If you are unsure which license is appropriate for your use, please
+ contact the sales department at qt-sales@nokia.com.
+
+
+src/searchlineedit.cpp src/searchlineedit.h src/urllineedit.cpp src/urllineedit.h
+
+ Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+ Contact: Nokia Corporation (qt-info@nokia.com)
+
+ This file is part of the demonstration applications of the Qt Toolkit.
+
+ $QT_BEGIN_LICENSE:LGPL$
+ Commercial Usage
+ Licensees holding valid Qt Commercial licenses may use this file in
+ accordance with the Qt Commercial License Agreement provided with the
+ Software or, alternatively, in accordance with the terms contained in
+ a written agreement between you and Nokia.
+
+ GNU Lesser General Public License Usage
+ Alternatively, this file may be used under the terms of the GNU Lesser
+ General Public License version 2.1 as published by the Free Software
+ Foundation and appearing in the file LICENSE.LGPL included in the
+ packaging of this file. Please review the following information to
+ ensure the GNU Lesser General Public License version 2.1 requirements
+ will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+
+ In addition, as a special exception, Nokia gives you certain
+ additional rights. These rights are described in the Nokia Qt LGPL
+ Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+ package.
+
+ GNU General Public License Usage
+ Alternatively, this file may be used under the terms of the GNU
+ General Public License version 3.0 as published by the Free Software
+ Foundation and appearing in the file LICENSE.GPL included in the
+ packaging of this file. Please review the following information to
+ ensure the GNU General Public License version 3.0 requirements will be
+ met: http://www.gnu.org/copyleft/gpl.html.
+
+ If you are unsure which license is appropriate for your use, please
+ contact the sales department at http://www.qtsoftware.com/contact.
+ $QT_END_LICENSE$
+
+src/iconloader/qticonloader.cpp src/iconloader/qticonloader.h
+
+ Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+ Contact: Qt Software Information (qt-info@nokia.com)
+
+ This file is part of the QtGui module of the Qt Toolkit.
+
+ Commercial Usage
+ Licensees holding valid Qt Commercial licenses may use this file in
+ accordance with the Qt Commercial License Agreement provided with the
+ Software or, alternatively, in accordance with the terms contained in
+ a written agreement between you and Nokia.
+
+ GNU Lesser General Public License Usage
+ Alternatively, this file may be used under the terms of the GNU Lesser
+ General Public License version 2.1 as published by the Free Software
+ Foundation and appearing in the file LICENSE.LGPL included in the
+ packaging of this file. Please review the following information to
+ ensure the GNU Lesser General Public License version 2.1 requirements
+ will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+
+ In addition, as a special exception, Nokia gives you certain
+ additional rights. These rights are described in the Nokia Qt LGPL
+ Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+ package.
+
+ GNU General Public License Usage
+ Alternatively, this file may be used under the terms of the GNU
+ General Public License version 3.0 as published by the Free Software
+ Foundation and appearing in the file LICENSE.GPL included in the
+ packaging of this file. Please review the following information to
+ ensure the GNU General Public License version 3.0 requirements will be
+ met: http://www.gnu.org/copyleft/gpl.html.
+
+ If you are unsure which license is appropriate for your use, please
+ contact the sales department at qt-sales@nokia.com.
+
+src/qtsingleapplication/*.{h,cpp}
+
+ This file is part of a Qt Solutions component.
+
+ Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+
+ Contact: Qt Software Information (qt-info@nokia.com)
+
+ Commercial Usage
+ Licensees holding valid Qt Commercial licenses may use this file in
+ accordance with the Qt Solutions Commercial License Agreement provided
+ with the Software or, alternatively, in accordance with the terms
+ contained in a written agreement between you and Nokia.
+
+ GNU Lesser General Public License Usage
+ Alternatively, this file may be used under the terms of the GNU Lesser
+ General Public License version 2.1 as published by the Free Software
+ Foundation and appearing in the file LICENSE.LGPL included in the
+ packaging of this file. Please review the following information to
+ ensure the GNU Lesser General Public License version 2.1 requirements
+ will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+
+ In addition, as a special exception, Nokia gives you certain
+ additional rights. These rights are described in the Nokia Qt LGPL
+ Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+ package.
+
+ GNU General Public License Usage
+ Alternatively, this file may be used under the terms of the GNU
+ General Public License version 3.0 as published by the Free Software
+ Foundation and appearing in the file LICENSE.GPL included in the
+ packaging of this file. Please review the following information to
+ ensure the GNU General Public License version 3.0 requirements will be
+ met: http://www.gnu.org/copyleft/gpl.html.
+
+ Please note Third Party Software included with Qt Solutions may impose
+ additional restrictions and it is the user's responsibility to ensure
+ that they have met the licensing requirements of the GPL, LGPL, or Qt
+ Solutions Commercial license and the relevant license of the Third
+ Party Software they are using.
+
+ If you are unsure which license is appropriate for your use, please
+ contact the sales department at qt-sales@nokia.com.
+
+------------------------------------------------------------------------------------------
+
+On Debian systems, the complete text of the GNU General
+Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'.
+
+The Debian packaging is:
+
+ Copyright (C) 2010 Jakob Haufe <sur5r@sur5r.net>
+
+and is licensed under the GPL version 3,
+see `/usr/share/common-licenses/GPL-3'.
+
+
+
--- /dev/null
+.\" Hey, EMACS: -*- nroff -*-
+.TH MINITUBE 1 "January 22, 2010"
+.SH NAME
+minitube \- Native YouTube client
+.SH SYNOPSIS
+.B minitube
+.SH DESCRIPTION
+This manual page documents briefly the
+.B minitube
+command.
+.PP
+\fBminitube\fP is a native YouTube client. With it you can watch YouTube
+videos in a new way: you type a keyword, Minitube gives you an endless
+video stream. Minitube does not require the Flash Player.
+.SH OPTIONS
+.nf
+--toggle-playing Start or pause playback
+--next Skip to the next video
+--previous Go back to the previous video
+--stop-after-this Stop playback at the end of the video
+.fi
+.SH AUTHOR
+minitube was written by Flavio Tordini <flavio.tordini@gmail.com>.
+.PP
+This manual page was written by Jakob Haufe <sur5r@sur5r.net>,
+for the Debian project (and may be used by others).
--- /dev/null
+/usr/bin/*
+/usr/share/*
--- /dev/null
+debian/minitube.1
--- /dev/null
+Description: Install AppStream metadata to /usr/share/metainfo/
+Author: Jakob Haufe <sur5r@debian.org>
+Forwarded: no
+Last-Update: 2019-07-14
+
+--- minitube-3.1.orig/minitube.pro
++++ minitube-3.1/minitube.pro
+@@ -236,7 +236,7 @@ unix:!mac {
+ sounds.files += sounds/
+ desktop.path = $$DATADIR/applications
+ desktop.files += minitube.desktop
+- appdata.path = $$DATADIR/appdata
++ appdata.path = $$DATADIR/metainfo
+ appdata.files += minitube.appdata.xml
+ iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps
+ iconsvg.files += data/minitube.svg
--- /dev/null
+Description: Disable update check as it's useless for a packaged version
+Author: Jakob Haufe <sur5r@sur5r.net>
+
+diff --git a/minitube.pro b/minitube.pro
+index e75a41d..441cc28 100644
+--- a/minitube.pro
++++ b/minitube.pro
+@@ -281,6 +281,8 @@ mac|win32|contains(DEFINES, APP_UBUNTU):include(local/local.pri)
+ include(lib/updater/updater.pri)
+ }
+
++DEFINES -= UPDATER
++
+ message(CONFIG: $$CONFIG)
+ message(DEFINES: $$DEFINES)
+ message(QMAKE_CXXFLAGS: $$QMAKE_CXXFLAGS)
--- /dev/null
+Description: Do proper temporary file creation
+ Upstream is using predictable temporary file names. Fix this in Debian
+ for now by using QTemporaryFile. This additionally ensures removal of
+ temporary files upon exit.
+Author: Jakob Haufe <sur5r@sur5r.net>
+Bug-Debian: http://bugs.debian.org/644935
+
+diff --git a/src/temporary.cpp b/src/temporary.cpp
+index 2bf7fcd..0561ecb 100644
+--- a/src/temporary.cpp
++++ b/src/temporary.cpp
+@@ -21,52 +21,27 @@ $END_LICENSE */
+ #include "temporary.h"
+ #include "constants.h"
+
+-static QVector<QString> paths;
+-#ifdef APP_LINUX
+-static QString userName;
+-#endif
++static QList<QTemporaryFile*> tempfiles;
+
+ Temporary::Temporary() { }
+
+ QString Temporary::filename() {
+- static const QString tempDir = QStandardPaths::writableLocation(QStandardPaths::TempLocation);
++ QTemporaryFile *tempfile = new QTemporaryFile(QDir::tempPath() + "/" + QString::number(qrand()));
++ tempfiles += tempfile;
+
+- QString tempFile = tempDir + "/" + Constants::UNIX_NAME + "-" +
+- QString::number(QRandomGenerator::global()->generate());
+-
+-#ifdef APP_LINUX
+- if (userName.isNull()) {
+- userName = QString(getenv("USERNAME"));
+- if (userName.isEmpty())
+- userName = QString(getenv("USER"));
+- }
+- if (!userName.isEmpty())
+- tempFile += "-" + userName;
+-#endif
+-
+- // tempFile += ".mp4";
+-
+- if (QFile::exists(tempFile) && !QFile::remove(tempFile)) {
+- qDebug() << "Cannot remove temp file" << tempFile;
+- }
+-
+- paths << tempFile;
+-
+- if (paths.size() > 1) {
+- QString removedFile = paths.takeFirst();
+- if (QFile::exists(removedFile) && !QFile::remove(removedFile)) {
+- qDebug() << "Cannot remove temp file" << removedFile;
+- }
++ if(tempfiles.size() > 1)
++ {
++ QTemporaryFile *removedFile = tempfiles.takeFirst();
++ delete removedFile;
+ }
+
+- return tempFile;
++ tempfile->open();
++ return tempfile->fileName();
+
+ }
+
+ void Temporary::deleteAll() {
+- foreach(const QString &path, paths) {
+- if (QFile::exists(path) && !QFile::remove(path)) {
+- qDebug() << "Cannot remove temp file" << path;
+- }
++ foreach(QTemporaryFile *tempfile, tempfiles) {
++ delete tempfile;
+ }
+ }
+diff --git a/src/temporary.h b/src/temporary.h
+index de5e24d..b8fbba9 100644
+--- a/src/temporary.h
++++ b/src/temporary.h
+@@ -23,6 +23,7 @@ $END_LICENSE */
+
+ #include <QtCore>
+ #include <QDesktopServices>
++#include <QTemporaryFile>
+
+ class Temporary {
+
--- /dev/null
+disable-update-check
+proper-tempfiles
+Install-AppStream-files-to-usr_share_metainfo
--- /dev/null
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export QT_SELECT=qt5
+
+%:
+ dh $@
+
+override_dh_auto_configure::
+ dh_auto_configure
+
+override_dh_auto_install::
+ dh_auto_install --destdir=debian/tmp
+ chmod a-x debian/tmp/usr/share/minitube/sounds/snapshot.wav
+
+override_dh_missing::
+ dh_missing --fail-missing
--- /dev/null
+3.0 (quilt)
--- /dev/null
+version=3
+
+#opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/minitube-$1\.tar\.gz/
+https://github.com/flaviotordini/minitube/releases .*/minitube-?(\d\S*)\.tar\.bz2