debian/0000775000000000000000000000000012321600316007162 5ustar debian/copyright0000664000000000000000000001647212321600316011127 0ustar This package was debianized by the Kubuntu Developers on Wed, 29 Jun 2011 02:24:19 +0530. It was downloaded from ftp://ftp.kde.org Upstream Author: The KDE development team Numerous people, too many to count, have contributed to kdelibs as a whole. The KDE project tries to make an extensive list of people who contributed to KDE at http://www.kde.org/people/credits/ Copyright: Unless something else is mentioned, copyright is (C) 1996-2011, The K Desktop Environment project http://www.kde.org Other copyright holders: Copyright: © 2000-2012 Aurélien Gâteau Copyright: © 2008 Nokia Corporation and/or its subsidiary(-ies). Copyright: © 1992-2008 Trolltech ASA. All rights reserved. Copyright: © 2000, 2006 David Faure Copyright: © 1991-2009, Thomas G. Lane. Copyright: © 1997-2009, Lane, Guido Vollbeding. Copyright: © 2004-2005 by Enrico Ros Copyright: © 2004-2007 by Albert Astals Cid Copyright: © 2008 Ilya Konkov Copyright: © Christopher Martin Copyright: © Henry de Valence Copyright: © 2008 Angelo Naselli Copyright: © 2008 Adrian Page Copyright: © 2009 Cyrille Berger License: Unless something else is mentioned, the code files in this package are under the GNU General Public License version 2 ( or later): | 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 2 of the License, or | (at your option) any later version. | | This program 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, write to the Free Software Foundation, Inc., | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. The full text of the GNU General Public License version 2 is available on Debian systems in /usr/share/common-licenses/GPL-2. -- Other used licenses: -- GNU Free Documentation License, version 1.2 (GFDL-1.2) 1 file is licensed under this license: doc/index.docbook On Debian systems, the complete text of the GNU Free Documentation License, version 1.2 can be found in /usr/share/common-licenses/GFDL-1.2 -- GNU General Public License version 2 or 3: 2 files are licensed under this license: lib/flowlayout.cpp lib/flowlayout.h The full text of the GNU General Public License version 2 is available on Debian systems in /usr/share/common-licenses/GPL-2. -- GNU Library General Public License, version 2.1 of the License, or (at your option) version 3, or any later version accepted by the membership of KDE e.V. (or its successor approved by the membership of KDE e.V.), which shall act as a proxy defined in Section 6 of version 3 of the license. 2 files are licensed under this license: lib/splittercollapser.cpp lib/splittercollapser.h On Debian systems, the complete text of the GNU Library General Public License version 2.1 can be found in /usr/share/common-licenses/LGPL-2.1 -- GNU Library General Public License, either version 2 of the License, or (at your option) any later version. 1 file is licensed under this license: lib/gwenviewlib_export.h On Debian systems, the complete text of the GNU Library General Public License version 2 can be found in /usr/share/common-licenses/LGPL-2 -- lib/libjpeg-62/transupp.h: Copyright (C) 1997, Thomas G. Lane lib/libjpeg-62/jinclude.h: Copyright (C) 1991-1994, Thomas G. Lane lib/libjpeg-62/jpegint.h: Copyright (C) 1997, Thomas G. Lane lib/libjpeg-62/transupp.c: Copyright (C) 1997, Thomas G. Lane lib/libjpeg-80/transupp.h: Copyright (C) 1997-2009, Thomas G. Lane, Guido Vollbeding lib/libjpeg-80/jinclude.h: Copyright (C) 1991-1994, Thomas G. Lane lib/libjpeg-80/jpegint.h: Copyright (C) 1991-1997, Thomas G. Lane, 1997-2009, Guido Vollbeding lib/libjpeg-80/transupp.c: Copyright (C) 1997-2009, Thomas G. Lane, Guido Vollbeding All files say: * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. In plain English: 1. We don't promise that this software works. (But if you find any bugs, please let us know!) 2. You can use this software for whatever you want. You don't have to pay us. 3. You may not pretend that you wrote this software. If you use it in a program, you must acknowledge somewhere in your documentation that you've used the IJG code. In legalese: The authors make NO WARRANTY or representation, either express or implied, with respect to this software, its quality, accuracy, merchantability, or fitness for a particular purpose. This software is provided "AS IS", and you, its user, assume the entire risk as to its quality and accuracy. This software is copyright (C) 1991-2010, Thomas G. Lane, Guido Vollbeding. All Rights Reserved except as specified below. Permission is hereby granted to use, copy, modify, and distribute this software (or portions thereof) for any purpose, without fee, subject to these conditions: (1) If any part of the source code for this software is distributed, then this README file must be included, with this copyright and no-warranty notice unaltered; and any additions, deletions, or changes to the original files must be clearly indicated in accompanying documentation. (2) If only executable code is distributed, then the accompanying documentation must state that "this software is based in part on the work of the Independent JPEG Group". (3) Permission for use of this software is granted only if the user accepts full responsibility for any undesirable consequences; the authors accept NO LIABILITY for damages of any kind. These conditions apply to any software derived from or based on the IJG code, not just to the unmodified library. If you use our work, you ought to acknowledge us. Permission is NOT granted for the use of any IJG author's name or company name in advertising or publicity relating to this software or products derived from it. This software may be referred to only as "the Independent JPEG Group's software". We specifically permit and encourage the use of this software as the basis of commercial products, provided that all warranty or liability claims are assumed by the product vendor. -- The Debian packaging is © 2011, Kubuntu Developers , © 2011, Debian Qt/KDE Maintainers and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. debian/gwenview.lintian-overrides0000664000000000000000000000017612321600316014401 0ustar gwenview: package-name-doesnt-match-sonames libgwenviewlib4 gwenview: no-symbols-control-file usr/lib/libgwenviewlib.so.4.8.0 debian/rules0000775000000000000000000000041112321600316010236 0ustar #!/usr/bin/make -f include /usr/share/pkg-kde-tools/qt-kde-team/2/debian-qt-kde.mk override_dh_auto_configure: $(overridden_command) -- -DKDE4_BUILD_TESTS=false .PHONY: override_dh_auto_test override_dh_strip: $(overridden_command) --dbg-package=gwenview-dbg debian/source/0000775000000000000000000000000012321600316010462 5ustar debian/source/format0000664000000000000000000000001412321600316011670 0ustar 3.0 (quilt) debian/changelog0000664000000000000000000003151312321600316011037 0ustar gwenview (4:4.13.0-0ubuntu1) trusty; urgency=medium * New upstream KDE Software Compilation release -- Jonathan Riddell Thu, 10 Apr 2014 21:36:29 +0100 gwenview (4:4.12.97-0ubuntu1) trusty; urgency=medium * New upstream release candidate -- Philip Muškovac Wed, 02 Apr 2014 11:07:59 +0200 gwenview (4:4.12.95-0ubuntu1) trusty; urgency=medium * New upstream beta release -- Rohan Garg Sun, 23 Mar 2014 11:54:42 +0100 gwenview (4:4.12.90-0ubuntu1) trusty; urgency=medium [ Rohan Garg ] * Add baloo, kfilemetadata and libkdcraw as build dependencies [ Jonathan Riddell ] * New upstream beta release [ Philip Muškovac ] * Loose the pattern for the libgwenview version in gwenview.install * Add more documentation to install file -- Jonathan Riddell Wed, 19 Mar 2014 10:34:35 +0000 gwenview (4:4.12.3-0ubuntu1) trusty; urgency=medium [ Harald Sitter ] * Dep3 for kubuntu_install_kipi_plugins.patch [ Rohan Garg ] * New upstream bugfix release -- Rohan Garg Tue, 04 Mar 2014 20:27:06 +0100 gwenview (4:4.12.2-0ubuntu1) trusty; urgency=medium * New upstream bugfix release -- Rohan Garg Tue, 04 Feb 2014 23:35:53 +0000 gwenview (4:4.12.1-0ubuntu1) trusty; urgency=low * New upstream bugfix release -- Rohan Garg Thu, 16 Jan 2014 07:55:41 +0000 gwenview (4:4.12.0-0ubuntu1) trusty; urgency=low * New upstream release -- Jonathan Riddell Wed, 18 Dec 2013 16:23:39 +0000 gwenview (4:4.11.97-0ubuntu1) trusty; urgency=low * New upstream RC release -- Jonathan Riddell Fri, 29 Nov 2013 12:29:35 +0000 gwenview (4:4.11.95-0ubuntu1) trusty; urgency=low [ Rohan Garg ] * New upstream beta release * Drop 0001-QWebView-include-was-leftover-drop-include.patch, applied upstream [ Harald Sitter ] * Add kubuntu_install_kipi_plugins.patch to install kipi-plugins when no plugins are available + Recommend qapt-batch (when not installed, on-demand install is not available) -- Harald Sitter Mon, 25 Nov 2013 18:57:29 +0100 gwenview (4:4.11.80-0ubuntu1) trusty; urgency=low * New upstream beta release - Update install files - Add 0001-QWebView-include-was-leftover-drop-include.patch to fix build without QtWebkit -- Rohan Garg Sat, 23 Nov 2013 17:26:08 +0100 gwenview (4:4.11.2-0ubuntu1) saucy; urgency=low * New upstream bugfix release -- Jonathan Riddell Mon, 30 Sep 2013 13:56:32 +0100 gwenview (4:4.11.1-0ubuntu1) saucy; urgency=low * New upstream bugfix release. -- Howard Chan Fri, 06 Sep 2013 22:04:45 +0100 gwenview (4:4.11.0-0ubuntu1) saucy; urgency=low [ Howard Chan ] * New upstream release [ Jonathan Riddell ] * New upstream release -- Jonathan Riddell Tue, 13 Aug 2013 23:56:34 +0100 gwenview (4:4.10.97-0ubuntu1) saucy; urgency=low * New upstream RC 2 release * New upstream RC 2 release -- Jonathan Riddell Fri, 26 Jul 2013 19:03:46 +0100 gwenview (4:4.10.95-0ubuntu1) saucy; urgency=low * New upstream RC release -- Rohan Garg Fri, 19 Jul 2013 12:31:44 +0000 gwenview (4:4.10.90-0ubuntu1) saucy; urgency=low * New upstream bet release -- Michał Zając Fri, 28 Jun 2013 17:58:23 +0100 gwenview (4:4.10.80-0ubuntu1) saucy; urgency=low [ Rohan Garg ] * New upstream release - Add nepomuk-core-dev to Build-Depends - Update install files [ Jonathan Riddell ] * New upstream release -- Jonathan Riddell Fri, 21 Jun 2013 00:45:16 +0100 gwenview (4:4.10.4-0ubuntu1) saucy-proposed; urgency=low * New upstream bugfix release -- Rohan Garg Thu, 06 Jun 2013 23:34:14 +0100 gwenview (4:4.10.3-0ubuntu1) saucy; urgency=low * New upstream release * Merge with debian, no changes -- Jonathan Riddell Thu, 23 May 2013 11:04:24 +0000 gwenview (4:4.10.2-1) experimental; urgency=low * New upstream release. [ Josep Febrer Salord ] * Bump kde-sc-dev-latest build dependency to 4:4.10.2. * Add libkactivities-dev, libpng-dev and liblcms2-dev build dependencies. * Disable build of unit tests. * Drop upstream_Catch-exceptions-from-Exiv2-when-gathering-meta-info.patch already applied upstream. * Update gwenview.install file. * Update copyright file. [ Sune Vuorela ] * Bump libkipi build-dep. * Add me to uploaders. -- Sune Vuorela Fri, 05 Apr 2013 23:27:47 +0000 gwenview (4:4.10.2-0ubuntu1) raring; urgency=low * New upstream bugfix release -- Philip Muškovac Sun, 31 Mar 2013 14:35:22 +0200 gwenview (4:4.10.1-0ubuntu1) raring-proposed; urgency=low * New upstream bugfix release -- Philip Muškovac Tue, 05 Mar 2013 15:11:50 +0000 gwenview (4:4.10.0-0ubuntu1) raring-proposed; urgency=low * New upstream release -- Rohan Garg Wed, 06 Feb 2013 11:29:52 +0000 gwenview (4:4.9.98-0ubuntu1) raring-proposed; urgency=low * New upstream release candidate -- Jonathan Riddell Fri, 18 Jan 2013 14:55:02 +0000 gwenview (4:4.9.97-0ubuntu1) raring; urgency=low * New upstream release candidate -- Philip Muškovac Thu, 03 Jan 2013 22:23:19 +0100 gwenview (4:4.9.95-0ubuntu1) raring; urgency=low * New upstream RC release -- Jonathan Riddell Tue, 18 Dec 2012 23:14:50 +0000 gwenview (4:4.9.90-0ubuntu1) raring-proposed; urgency=low * New upstream beta release - Add kubuntu_cmake_jpeg_multiarch_path.diff and follow upstream's implementation -- Jonathan Riddell Fri, 07 Dec 2012 17:35:08 +0000 gwenview (4:4.9.80-0ubuntu1) raring; urgency=low * Update .install file * Add libkactivities-dev, liblcms2-dev, libpng12-dev to the build-deps * New upstream beta release -- Jonathan Riddell Mon, 19 Nov 2012 15:42:29 +0000 gwenview (4:4.9.3-0ubuntu1) raring; urgency=low * New upstream release (LP: #1074747) -- Philip Muškovac Tue, 06 Nov 2012 22:21:13 +0100 gwenview (4:4.9.2-0ubuntu1) quantal-proposed; urgency=low * New upstream bugfix release -- Jonathan Riddell Tue, 02 Oct 2012 15:09:48 +0100 gwenview (4:4.9.1-0ubuntu1) quantal; urgency=low [ Harald Sitter ] * New upstream release [ Philip Muškovac ] * Change sonames from 4.9.0 to 4.9.* -- Harald Sitter Mon, 10 Sep 2012 18:15:18 +0530 gwenview (4:4.9.0-0ubuntu2) quantal; urgency=low * Build-dep on kdelibs 4.9.0a, adjust .install files to new library version no -- Jonathan Riddell Thu, 02 Aug 2012 11:57:46 +0100 gwenview (4:4.9.0-0ubuntu1) quantal; urgency=low * Use direct build-depends versions rather than kde-sc-dev-latest * New upstream release -- Jonathan Riddell Thu, 26 Jul 2012 16:59:10 +0100 gwenview (4:4.8.90-0ubuntu1) quantal; urgency=low [ Felix Geyer ] * New upstream beta release. [ Jonathan Riddell ] * Update .install file -- Felix Geyer Mon, 11 Jun 2012 22:01:17 +0200 gwenview (4:4.8.80-0ubuntu1) quantal; urgency=low * Merge with Debian git repository, no remaining changes. * New upstream beta release. - Update gwenview.install -- Felix Geyer Wed, 06 Jun 2012 10:30:15 +0200 gwenview (4:4.8.4-2) unstable; urgency=low * Team upload. * Backport upstream commit 05511b41913904c36bfd2cccc888ac4c466784f1 to fix crash when gathering meta info by catching Exiv2 exceptions; patch upstream_Catch-exceptions-from-Exiv2-when-gathering-meta-info.patch. * Update lintian overrides. -- Pino Toscano Thu, 28 Jun 2012 19:27:14 +0200 gwenview (4:4.8.4-1) unstable; urgency=low * New upstream release. [ Eshat Cakar ] * Bump kde-sc-dev-latest build dependency to 4:4.8.4. * Add libqt4-opengl-dev to build-dependecies. * Update installed files. * Bump Standards-Version to 3.9.3: No further changes. * Add watch file. -- Debian Qt/KDE Maintainers Fri, 06 Jan 2012 12:19:57 +0100 gwenview (4:4.8.3-0r0) raring; urgency=low * New upstream release. [ Eshat Cakar ] * Bump kde-sc-dev-latest build dependency to 4:4.8.3. * Add libqt4-opengl-dev to build-dependecies. * Update installed files. * Bump Standards-Version to 3.9.3: No further changes. -- Debian Qt/KDE Maintainers Fri, 06 Jan 2012 12:19:57 +0100 gwenview (4:4.8.3-0ubuntu1) quantal; urgency=low * New upstream release -- Jonathan Kolberg Thu, 03 May 2012 20:11:03 +0200 gwenview (4:4.8.2-0ubuntu1) precise; urgency=low * New upstream release -- Philip Muškovac Sun, 01 Apr 2012 22:15:40 +0200 gwenview (4:4.8.1-0ubuntu1) precise; urgency=low * New upstream release - update kubuntu_cmake_jpeg_multiarch_path.diff -- Philip Muškovac Sun, 04 Mar 2012 19:39:18 +0100 gwenview (4:4.8.0-0ubuntu1) precise; urgency=low * New upstream release * Add kubuntu_cmake_jpeg_multiarch_path.diff so lib/CMakeLists.txt can find jconfig.h again -- Philip Muškovac Mon, 23 Jan 2012 19:27:00 +0100 gwenview (4:4.7.97-0ubuntu1) precise; urgency=low * New upstream release candidate -- Jonathan Riddell Thu, 05 Jan 2012 12:18:23 +0000 gwenview (4:4.7.95-0ubuntu1) precise; urgency=low [ Philip Muškovac ] * New upstream release candiate [ Scott Kitterman ] * Fix Ubuntu Vcs- header in debian/control -- Philip Muškovac Sat, 24 Dec 2011 18:54:55 +0100 gwenview (4:4.7.90-0ubuntu2) precise; urgency=low * Add debian/patches/double_qrealfixes.diff to fix double/qreal mismatches that cause FTBFS on armel and armhf -- Scott Kitterman Thu, 22 Dec 2011 09:55:03 -0500 gwenview (4:4.7.90-0ubuntu1) precise; urgency=low * new upstream beta release -- Jonathan Riddell Thu, 15 Dec 2011 14:17:54 +0000 gwenview (4:4.7.4-2) unstable; urgency=low * Team upload. Upload to unstable. -- Pino Toscano Tue, 06 Mar 2012 21:45:33 +0100 gwenview (4:4.7.4-1) experimental; urgency=low * New upstream release. [ Eshat Cakar ] * Bump kde-sc-dev-latest build dependency to 4:4.7.4. * Add kamera to recommends, so that importing pictures from PTP devices work. [ José Manuel Santamaría Lema ] * Bump shared-desktop-ontologies build dependency to 0.8. -- Debian Qt/KDE Maintainers Sun, 18 Dec 2011 01:35:47 +0100 gwenview (4:4.7.3-0ubuntu1) precise; urgency=low * New upstream release * Merge with Debian, no changes -- Jonathan Riddell Wed, 23 Nov 2011 23:46:55 +0000 gwenview (4:4.7.2-1) experimental; urgency=low [ Eshat Cakar ] * Initial release. Start from the Kubuntu packaging, thanks! -- Debian Qt/KDE Maintainers Sat, 03 Dec 2011 10:46:24 -0300 gwenview (4:4.7.2-0ubuntu1) oneiric-proposed; urgency=low * New upstream release (LP: #872506) * Use wildcard in install file -- Philip Muškovac Sat, 15 Oct 2011 11:10:08 +0200 gwenview (4:4.7.1-0ubuntu2) oneiric; urgency=low * No-change rebuild so translations aren't stripped from .desktop files anymore. -- Felix Geyer Thu, 15 Sep 2011 22:52:21 +0200 gwenview (4:4.7.1-0ubuntu1) oneiric; urgency=low * New upstream release -- Jonathan Kolberg Thu, 08 Sep 2011 12:26:41 -0400 gwenview (4:4.7.0-0ubuntu4) oneiric; urgency=low * Build depend on libjpeg-dev again now that libjpeg8-dev no longer provides that virtual package - update debian/control -- Micah Gersten Sun, 31 Jul 2011 20:22:28 -0500 gwenview (4:4.7.0-0ubuntu3) oneiric; urgency=low * Set maintainer field to Kubuntu Developers. -- Felix Geyer Fri, 29 Jul 2011 10:43:17 +0200 gwenview (4:4.7.0-0ubuntu2) oneiric; urgency=low * Build-depend on libjpeg62-dev instead of the virtual package libjpeg-dev. -- Felix Geyer Fri, 29 Jul 2011 10:37:39 +0200 gwenview (4:4.7.0-0ubuntu1) oneiric; urgency=low * New upstream release -- Jonathan Thomas Fri, 22 Jul 2011 21:35:53 -0400 gwenview (4:4.6.90+repack-0ubuntu1) oneiric; urgency=low [ Rohan Garg ] * Initial release [ Felix Geyer ] * Repackage tarball to add the full text of the GFDL 1.2 and to add license and copyright information to doc/index.docbook. -- Rohan Garg Wed, 20 Jul 2011 13:46:34 +0200 debian/compat0000664000000000000000000000000212321600316010360 0ustar 7 debian/control0000664000000000000000000000367312321600316010576 0ustar Source: gwenview Section: kde Priority: optional Maintainer: Kubuntu Developers XSBC-Original-Maintainer: Debian Qt/KDE Maintainers Uploaders: Eshat Cakar , Sune Vuorela Build-Depends: kde-sc-dev-latest (>= 4:4.10.2), cmake, debhelper (>= 7.3.16), pkg-kde-tools (>= 0.12), libexiv2-dev, libjpeg-dev, libkipi-dev (>= 4:4.13.0), libkonq5-dev (>= 4:4.13.0), shared-desktop-ontologies (>= 0.8), libqt4-opengl-dev, libkactivities-dev (>= 4:4.13.0), libpng-dev, liblcms2-dev, baloo-dev (>= 4:4.13.0), libkfilemetadata-dev (>= 4:4.13.0), libkdcraw-dev (>= 4:4.13.0) Standards-Version: 3.9.3 Homepage: http://www.kde.org/ Vcs-Browser: http://bazaar.launchpad.net/~kubuntu-packagers/kubuntu-packaging/gwenview Vcs-Bzr: https://code.launchpad.net/~kubuntu-packagers/kubuntu-packaging/gwenview X-Debian-Vcs-Browser: http://git.debian.org/?p=pkg-kde/kde-sc/gwenview.git X-Debian-Vcs-Git: git://git.debian.org/pkg-kde/kde-sc/gwenview.git Package: gwenview Section: graphics Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Replaces: kdegraphics-libs-data (<< 4:4.7.1~) Breaks: kdegraphics-libs-data (<< 4:4.7.1~) Recommends: kamera, qapt-batch Suggests: svgpart Description: image viewer Gwenview is an image viewer, ideal for browsing and displaying a collection of images. It is capable of showing images in a full-screen slideshow view and making simple adjustments, such as rotating or cropping images. . This package is part of the KDE graphics module. Package: gwenview-dbg Section: debug Architecture: any Priority: extra Depends: gwenview (= ${binary:Version}), kde-runtime-dbg, ${misc:Depends} Replaces: kdegraphics-dbg (<< 4:4.7.1~) Breaks: kdegraphics-dbg (<< 4:4.7.1~) Description: debugging symbols for the gwenview This package contains debugging files used to investigate problems with Gwenview. . This package is part of the KDE graphics module. debian/patches/0000775000000000000000000000000012321600316010611 5ustar debian/patches/kubuntu_install_kipi_plugins.patch0000664000000000000000000000720512321600316017636 0ustar From: Harald Sitter diff --git a/app/kipiinterface.cpp b/app/kipiinterface.cpp index d411c5b..f7207e4 100644 --- a/app/kipiinterface.cpp +++ b/app/kipiinterface.cpp @@ -52,6 +52,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Cambridge, MA 02110-1301, USA #include #include +#include + namespace Gwenview { #undef ENABLE_LOG @@ -247,7 +249,16 @@ KIPIInterface::KIPIInterface(MainWindow* mainWindow) d->mMainWindow = mainWindow; d->mPluginLoader = 0; d->mLoadingAction = d->createDummyPluginAction(i18n("Loading...")); - d->mNoPluginAction = d->createDummyPluginAction(i18n("No Plugin Found")); + if (!QFile::exists("/usr/bin/qapt-batch")) { // Only allow on-demand install when qapt-batch is present. + d->mNoPluginAction = d->createDummyPluginAction(i18n("No Plugin Found")); + } else { + KAction* action = new KAction(this); + action->setText(i18n("Install Plugins")); + action->setShortcutConfigurable(false); + action->setEnabled(true); + QObject::connect(action, SIGNAL(triggered()), this, SLOT(installPlugins())); + d->mNoPluginAction = action; + } d->setupPluginsMenu(); QObject::connect(d->mMainWindow->contextManager(), SIGNAL(selectionChanged()), @@ -359,6 +370,41 @@ void KIPIInterface::loadOnePlugin() loadingFinished(); } +void KIPIInterface::installPlugins() +{ + KProcess *proc = new KProcess(this); + proc->setProgram("/usr/bin/qapt-batch", + QStringList() + << "--install" << "kipi-plugins" + << "--attach" << QString::number(d->mMainWindow->winId())); + connect(proc, SIGNAL(finished(int)), this, SLOT(onInstallPluginsFinished(int))); + connect(proc, SIGNAL(finished(int)), proc, SLOT(deleteLater())); + proc->start(); +} + +void KIPIInterface::onInstallPluginsFinished(int code) +{ + if (code != 0) // Install failed, leave UI as it is (shows install option). + return; + + KProcess *proc = new KProcess(this); + proc->setProgram("/usr/bin/kbuildsycoca4"); + connect(proc, SIGNAL(finished(int)), this, SLOT(onSycocaUpdateFinished(int))); + connect(proc, SIGNAL(finished(int)), proc, SLOT(deleteLater())); + proc->start(); +} + +void KIPIInterface::onSycocaUpdateFinished(int /*code*/) +{ + // Return code is disregarded as we may be lucky and it may have + // picked up the new desktop files by now automagically. + // Also when kbuildsycoca returns !0 something is terribly wrong. + d->mPluginLoader->deleteLater(); + d->mPluginLoader = 0; + d->mPluginMenu->clear(); + loadPlugins(); +} + QList KIPIInterface::pluginActions(KIPI::Category category) const { const_cast(this)->loadPlugins(); diff --git a/app/kipiinterface.h b/app/kipiinterface.h index 45fb03b..bcb5494 100644 --- a/app/kipiinterface.h +++ b/app/kipiinterface.h @@ -71,6 +71,9 @@ private Q_SLOTS: void slotDirectoryChanged(); void init(); void loadOnePlugin(); + void installPlugins(); + void onInstallPluginsFinished(int code); + void onSycocaUpdateFinished(int code); private: KIPIInterfacePrivate* const d; debian/patches/series0000664000000000000000000000004312321600316012023 0ustar kubuntu_install_kipi_plugins.patch debian/gwenview.install0000664000000000000000000000363312321600316012412 0ustar usr/bin/gwenview usr/bin/gwenview_importer usr/lib/kde4/gvpart.so usr/lib/libgwenviewlib.so.4 usr/lib/libgwenviewlib.so.4.* usr/share/applications/kde4/gwenview.desktop usr/share/doc/kde/HTML/en/gwenview/browse_mode.png usr/share/doc/kde/HTML/en/gwenview/common usr/share/doc/kde/HTML/en/gwenview/fullscreen-browse.png usr/share/doc/kde/HTML/en/gwenview/fullscreen-view.png usr/share/doc/kde/HTML/en/gwenview/importer-picking-root-folder.png usr/share/doc/kde/HTML/en/gwenview/importer.png usr/share/doc/kde/HTML/en/gwenview/index.cache.bz2 usr/share/doc/kde/HTML/en/gwenview/index.docbook usr/share/doc/kde/HTML/en/gwenview/modified-bar.png usr/share/doc/kde/HTML/en/gwenview/start-page.png usr/share/doc/kde/HTML/en/gwenview/view_mode.png usr/share/icons/hicolor/128x128/actions/document-share.png usr/share/icons/hicolor/128x128/apps/gwenview.png usr/share/icons/hicolor/16x16/actions/document-share.png usr/share/icons/hicolor/16x16/apps/gwenview.png usr/share/icons/hicolor/22x22/actions/document-share.png usr/share/icons/hicolor/22x22/apps/gwenview.png usr/share/icons/hicolor/32x32/actions/document-share.png usr/share/icons/hicolor/32x32/apps/gwenview.png usr/share/icons/hicolor/48x48/actions/document-share.png usr/share/icons/hicolor/48x48/apps/gwenview.png usr/share/icons/hicolor/64x64/actions/document-share.png usr/share/icons/hicolor/64x64/apps/gwenview.png usr/share/icons/hicolor/scalable/actions/document-share.svgz usr/share/icons/hicolor/scalable/apps/gwenview.svgz usr/share/kde4/apps/gvpart/gvpart.rc usr/share/kde4/apps/gwenview/color-schemes/fullscreen.colors usr/share/kde4/apps/gwenview/cursors/zoom.png usr/share/kde4/apps/gwenview/gwenviewui.rc usr/share/kde4/apps/gwenview/images/background.png usr/share/kde4/apps/solid/actions/gwenview_importer.desktop usr/share/kde4/apps/solid/actions/gwenview_importer_camera.desktop usr/share/kde4/services/ServiceMenus/slideshow.desktop usr/share/kde4/services/gvpart.desktop debian/not-installed0000664000000000000000000000012512321600316011660 0ustar # gwenview doesn't have anything we need to link against ./usr/lib/libgwenviewlib.so