From 73f709a0f0a63321eb0cfcb0b12e0f17946571cfe59e25faab35ad0abaf7d0d6 Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Fri, 27 Nov 2015 14:44:02 +0000 Subject: [PATCH] Accepting request 346533 from home:wolfi323:test - Added register-dbus-name-for-kioexec.patch: prevent klauncher from freezing and displaying an error message when opening documents (boo#924764, kde#353037) OBS-URL: https://build.opensuse.org/request/show/346533 OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kio?expand=0&rev=104 --- kio.changes | 7 +++++ kio.spec | 3 ++ register-dbus-name-for-kioexec.patch | 45 ++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 register-dbus-name-for-kioexec.patch diff --git a/kio.changes b/kio.changes index c97e507..1dbe17b 100644 --- a/kio.changes +++ b/kio.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Nov 27 12:47:46 UTC 2015 - wbauer@tmo.at + +- Added register-dbus-name-for-kioexec.patch: prevent klauncher + from freezing and displaying an error message when opening + documents (boo#924764, kde#353037) + ------------------------------------------------------------------- Sun Nov 8 17:01:28 UTC 2015 - hrvoje.senjan@gmail.com diff --git a/kio.spec b/kio.spec index 1d254af..c23b9d0 100644 --- a/kio.spec +++ b/kio.spec @@ -75,6 +75,8 @@ Source: http://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-% Source1: baselibs.conf # PATCH-FIX-OPENSUSE kio_help-fallback-to-kde4-docs.patch -- allow kio_help to see into kde4 documentation, needed especially for khelpcenter5 Patch0: kio_help-fallback-to-kde4-docs.patch +# PATCH-FIX-UPSTREAM register-dbus-name-for-kioexec.patch boo#924764, kde#353037 -- prevent klauncher from freezing and displaying an error message when opening documents +Patch1: register-dbus-name-for-kioexec.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -121,6 +123,7 @@ Development files. %prep %setup -q %patch0 -p1 +%patch1 -p1 %build %cmake_kf5 -d build diff --git a/register-dbus-name-for-kioexec.patch b/register-dbus-name-for-kioexec.patch new file mode 100644 index 0000000..89217f1 --- /dev/null +++ b/register-dbus-name-for-kioexec.patch @@ -0,0 +1,45 @@ +From: Weng Xuetian +Date: Wed, 25 Nov 2015 08:33:47 +0000 +Subject: Register DBus name for kioexec +X-Git-Url: http://quickgit.kde.org/?p=kio.git&a=commitdiff&h=1b4289ca0e00bf7ba59b19837ea2b2519f42a984 +--- +Register DBus name for kioexec + +KLauncher expects kioexec to register org.kde.kioexec on dbus. + +REVIEW: 126164 +BUG: 353037 +FIXED-IN: 5.17.0 +--- + + +--- a/src/kioexec/CMakeLists.txt ++++ b/src/kioexec/CMakeLists.txt +@@ -10,6 +10,7 @@ + KF5::KIOWidgets # KRun + KF5::WidgetsAddons # KMessageBox + KF5::WindowSystem # KStartupInfo ++ KF5::DBusAddons # KDBusService + ) + + if (HAVE_X11) + +--- a/src/kioexec/main.cpp ++++ b/src/kioexec/main.cpp +@@ -37,6 +37,7 @@ + #include + #include + #include ++#include + + #include + #include +@@ -282,6 +283,7 @@ + aboutData.addAuthor(i18n("Waldo Bastian"),QString(), QStringLiteral("bastian@kde.org")); + aboutData.addAuthor(i18n("Oswald Buddenhagen"),QString(), QStringLiteral("ossi@kde.org")); + KAboutData::setApplicationData(aboutData); ++ KDBusService service(KDBusService::Multiple); + + QCommandLineParser parser; + parser.addHelpOption(); +