[SCM] kate packaging branch, kubuntu_vivid_archive, updated. debian/4.14.2-2-37-g528a3fa

Felix Geyer fgeyer at moszumanska.debian.org
Wed May 27 22:11:29 UTC 2015


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/kate.git;a=commitdiff;h=528a3fa

The following commit has been merged in the kubuntu_vivid_archive branch:
commit 528a3fad2878f84bc955e82c14d136a444214baa
Author: Felix Geyer <debfx at ubuntu.com>
Date:   Thu May 28 00:08:52 2015 +0200

    Fix "KDEInit could not launch Kate" error when opening second file with Kate in Dolphin.
    
    * Fix "KDEInit could not launch Kate" error when opening second file with Kate
      in Dolphin. (LP: #1449029)
      - Add upstream_Register_with_dbus_to_wake_up_KRun.patch
---
 debian/changelog                                   |  8 +++
 debian/patches/series                              |  1 +
 ...stream_Register_with_dbus_to_wake_up_KRun.patch | 69 ++++++++++++++++++++++
 3 files changed, 78 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 7ec56dd..b64b793 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+kate (4:14.12.3-0ubuntu2.1) vivid; urgency=medium
+
+  * Fix "KDEInit could not launch Kate" error when opening second file with Kate
+    in Dolphin. (LP: #1449029)
+    - Add upstream_Register_with_dbus_to_wake_up_KRun.patch
+
+ -- Felix Geyer <debfx at ubuntu.com>  Wed, 27 May 2015 23:44:57 +0200
+
 kate (4:14.12.3-0ubuntu2) vivid; urgency=medium
 
   * Add upstream_find-IconThemes.diff to fix compile
diff --git a/debian/patches/series b/debian/patches/series
index f45abb9..1d688b4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 upstream_find-IconThemes.diff
+upstream_Register_with_dbus_to_wake_up_KRun.patch
diff --git a/debian/patches/upstream_Register_with_dbus_to_wake_up_KRun.patch b/debian/patches/upstream_Register_with_dbus_to_wake_up_KRun.patch
new file mode 100644
index 0000000..32262e0
--- /dev/null
+++ b/debian/patches/upstream_Register_with_dbus_to_wake_up_KRun.patch
@@ -0,0 +1,69 @@
+From: Liu Zhe <cruise.pas at gmail.com>
+Date: Tue, 10 Mar 2015 11:58:51 +0000
+Subject: Register with dbus to wake up KRun, and unregister then
+X-Git-Tag: v15.03.90
+X-Git-Url: http://quickgit.kde.org/?p=kate.git&a=commitdiff&h=5207e49a84145e21060f3b5beff302a437cfeccd
+---
+Register with dbus to wake up KRun, and unregister then
+
+This fixes the "KDEInit could not launch Kate" error
+when opening second file with Kate
+
+REVIEW: 122498
+BUG: 343673
+BUG: 339094
+---
+
+
+--- a/kate/src/kateapp.cpp
++++ b/kate/src/kateapp.cpp
+@@ -151,10 +151,8 @@
+     } else if (!m_args.isSet(QStringLiteral("stdin")) && (m_args.positionalArguments().count() == 0)) { // only start session if no files specified
+         // let the user choose session if possible
+         if (!sessionManager()->chooseSession()) {
+-#ifdef Q_WS_X11
+             // we will exit kate now, notify the rest of the world we are done
+-            KStartupInfo::appStarted(startupId());
+-#endif
++            KStartupInfo::appStarted(KStartupInfo::startupId());
+             return false;
+         }
+     } else {
+@@ -167,9 +165,7 @@
+     }
+ 
+     // notify about start
+-#ifdef Q_WS_X11
+-    KStartupInfo::setNewStartupId(activeKateMainWindow(), startupId());
+-#endif
++    KStartupInfo::setNewStartupId(activeKateMainWindow(), KStartupInfo::startupId());
+ 
+     QTextCodec *codec = m_args.isSet(QStringLiteral("encoding")) ? QTextCodec::codecForName(m_args.value(QStringLiteral("encoding")).toUtf8()) : 0;
+     bool tempfileSet = m_args.isSet(QStringLiteral("tempfile"));
+
+--- a/kate/src/main.cpp
++++ b/kate/src/main.cpp
+@@ -25,6 +25,7 @@
+ 
+ #include <KAboutData>
+ #include <KLocalizedString>
++#include <KStartupInfo>
+ #include <kdbusservice.h>
+ 
+ #include <QByteArray>
+@@ -395,10 +396,12 @@
+                 QDBusConnection::sessionBus().connect(serviceName, QStringLiteral("/MainApplication"), QStringLiteral("org.kde.Kate.Application"), QStringLiteral("documentClosed"), waiter, SLOT(documentClosed(QString)));
+             }
+ 
+-    #ifdef Q_WS_X11
++            // KToolInvocation (and KRun) will wait until we register on dbus
++            KDBusService dbusService(KDBusService::Multiple);
++            dbusService.unregister();
++
+             // make the world happy, we are started, kind of...
+             KStartupInfo::appStarted();
+-    #endif
+ 
+             // this will wait until exiting is emitted by the used instance, if wanted...
+             return needToBlock ? app.exec() : 0;
+

-- 
kate packaging



More information about the pkg-kde-commits mailing list