Hello community,

here is the log from the commit of package kded for openSUSE:Factory checked in 
at 2016-07-15 12:33:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kded (Old)
 and      /work/SRC/openSUSE:Factory/.kded.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kded"

Changes:
--------
--- /work/SRC/openSUSE:Factory/kded/kded.changes        2016-07-03 
12:21:08.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.kded.new/kded.changes   2016-07-15 
12:33:19.000000000 +0200
@@ -1,0 +2,7 @@
+Wed Jul  6 15:02:52 UTC 2016 - [email protected]
+
+- Update to 5.24.0
+  * For more details please see:
+    https://www.kde.org/announcements/kde-frameworks-5.24.0.php
+
+-------------------------------------------------------------------

Old:
----
  kded-5.23.0.tar.xz

New:
----
  kded-5.24.0.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kded.spec ++++++
--- /var/tmp/diff_new_pack.X3A5Ol/_old  2016-07-15 12:33:20.000000000 +0200
+++ /var/tmp/diff_new_pack.X3A5Ol/_new  2016-07-15 12:33:20.000000000 +0200
@@ -17,9 +17,9 @@
 
 
 %bcond_without lang
-%define _tar_path 5.23
+%define _tar_path 5.24
 Name:           kded
-Version:        5.23.0
+Version:        5.24.0
 Release:        0
 %define kf5_version %{version}
 BuildRequires:  cmake >= 2.8.12

++++++ kded-5.23.0.tar.xz -> kded-5.24.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kded-5.23.0/CMakeLists.txt 
new/kded-5.24.0/CMakeLists.txt
--- old/kded-5.23.0/CMakeLists.txt      2016-06-06 13:30:50.000000000 +0200
+++ new/kded-5.24.0/CMakeLists.txt      2016-07-03 02:05:05.000000000 +0200
@@ -3,7 +3,7 @@
 project(KDED)
 
 include(FeatureSummary)
-find_package(ECM 5.23.0  NO_MODULE)
+find_package(ECM 5.24.0  NO_MODULE)
 set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake 
Modules." URL 
"https://projects.kde.org/projects/kdesupport/extra-cmake-modules";)
 feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND 
FATAL_ON_MISSING_REQUIRED_PACKAGES)
 
@@ -16,8 +16,8 @@
 include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
 include(KDECMakeSettings)
 
-set(KF5_VERSION "5.23.0") # handled by release scripts
-set(KF5_DEP_VERSION "5.23.0") # handled by release scripts
+set(KF5_VERSION "5.24.0") # handled by release scripts
+set(KF5_DEP_VERSION "5.24.0") # handled by release scripts
 find_package(KF5Config ${KF5_DEP_VERSION} REQUIRED)
 find_package(KF5CoreAddons ${KF5_DEP_VERSION} REQUIRED)
 find_package(KF5Crash ${KF5_DEP_VERSION} REQUIRED)
@@ -29,6 +29,7 @@
 
 include(ECMPackageConfigHelpers)
 include(ECMSetupVersion)
+include(ECMMarkNonGuiExecutable)
 
 ecm_setup_version(
   ${KF5_VERSION}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kded-5.23.0/metainfo.yaml 
new/kded-5.24.0/metainfo.yaml
--- old/kded-5.23.0/metainfo.yaml       2016-06-06 13:30:50.000000000 +0200
+++ new/kded-5.24.0/metainfo.yaml       2016-07-03 02:05:05.000000000 +0200
@@ -3,6 +3,7 @@
 tier: 3
 type: solution
 platforms:
+    - name: Linux
 portingAid: false
 deprecated: false
 release: true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kded-5.23.0/src/CMakeLists.txt 
new/kded-5.24.0/src/CMakeLists.txt
--- old/kded-5.23.0/src/CMakeLists.txt  2016-06-06 13:30:50.000000000 +0200
+++ new/kded-5.24.0/src/CMakeLists.txt  2016-07-03 02:05:05.000000000 +0200
@@ -3,12 +3,7 @@
 )
 
 kf5_add_kdeinit_executable(kded5 ${kded_KDEINIT_SRCS})
-
-if (APPLE)
-    set_target_properties(kded5 PROPERTIES MACOSX_BUNDLE_INFO_PLIST 
${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.template)
-    set_target_properties(kded5 PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER 
"org.kded.kded5")
-    set_target_properties(kded5 PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "KDE 
Daemon")
-endif ()
+ecm_mark_nongui_executable(kded5)
 
 target_link_libraries(kdeinit_kded5
     Qt5::Widgets # QApplication
@@ -17,6 +12,9 @@
     KF5::DBusAddons # Needed for kdedmodule.h
     KF5::Crash # Sets it as autostart
 )
+if(APPLE)
+    target_link_libraries(kdeinit_kded5 "-framework CoreFoundation")
+endif()
 target_compile_definitions(kdeinit_kded5 PRIVATE
     KCONF_UPDATE_EXE="$<TARGET_FILE:KF5::kconf_update>"
 )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kded-5.23.0/src/kded.cpp new/kded-5.24.0/src/kded.cpp
--- old/kded-5.23.0/src/kded.cpp        2016-06-06 13:30:50.000000000 +0200
+++ new/kded-5.24.0/src/kded.cpp        2016-07-03 02:05:05.000000000 +0200
@@ -48,6 +48,10 @@
 #include <KPluginInfo>
 #include <KPluginMetaData>
 
+#ifdef Q_OS_OSX
+#include <CoreFoundation/CoreFoundation.h>
+#endif
+
 Q_DECLARE_LOGGING_CATEGORY(KDED)
 
 #if QT_VERSION >= QT_VERSION_CHECK(5, 4, 0)
@@ -192,7 +196,14 @@
 void Kded::initModules()
 {
     m_dontLoad.clear();
+#ifdef Q_OS_OSX
+    // it seems there is no reason to honour KDE_FULL_SESSION on OS X even if 
it's set for some reason.
+    // That way kdeinit5 is always auto-started if required (and the kded is 
as good a candidate
+    // for starting this service as any other application).
+    bool kde_running = false;
+#else
     bool kde_running = !qEnvironmentVariableIsEmpty("KDE_FULL_SESSION");
+#endif
     if (kde_running) {
 #ifndef Q_OS_WIN
         // not the same user like the one running the session (most likely 
we're run via sudo or something)
@@ -676,6 +687,20 @@
 
 extern "C" Q_DECL_EXPORT int kdemain(int argc, char *argv[])
 {
+#ifdef Q_OS_OSX
+    CFBundleRef mainBundle = CFBundleGetMainBundle();
+    if (mainBundle) {
+        // get the application's Info Dictionary. For app bundles this would 
live in the bundle's Info.plist,
+        // for regular executables it is obtained in another way.
+        CFMutableDictionaryRef infoDict = (CFMutableDictionaryRef) 
CFBundleGetInfoDictionary(mainBundle);
+        if (infoDict) {
+            // Add or set the "LSUIElement" key with/to value "1". This can 
simply be a CFString.
+            CFDictionarySetValue(infoDict, CFSTR("LSUIElement"), CFSTR("1"));
+            // That's it. We're now considered as an "agent" by the window 
server, and thus will have
+            // neither menubar nor presence in the Dock or App Switcher.
+        }
+    }
+#endif
     //options.add("check", qi18n("Check Sycoca database only once"));
 
     // WABA: Make sure not to enable session management.


Reply via email to