diff --git a/local/recipes/kde/kf6-kded6/recipe.toml b/local/recipes/kde/kf6-kded6/recipe.toml index 2252b63a..bfcb7790 100644 --- a/local/recipes/kde/kf6-kded6/recipe.toml +++ b/local/recipes/kde/kf6-kded6/recipe.toml @@ -1,4 +1,3 @@ -#TODO: kded6 — KDE daemon for module loading and D-Bus service management. [source] tar = "https://invent.kde.org/frameworks/kded/-/archive/v6.10.0/kded-v6.10.0.tar.gz" @@ -39,7 +38,7 @@ cmake "${COOKBOOK_SOURCE}" \ -DQT_HOST_PATH="${HOST_BUILD}" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}" \ + -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT};${HOST_BUILD}" \ -DBUILD_TESTING=OFF \ -DBUILD_QCH=OFF \ -Wno-dev diff --git a/local/recipes/kde/kf6-kded6/source/.git-blame-ignore-revs b/local/recipes/kde/kf6-kded6/source/.git-blame-ignore-revs new file mode 100644 index 00000000..26d8c060 --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/.git-blame-ignore-revs @@ -0,0 +1,3 @@ +#clang-format +d88258e39caa2af3ac698629601adac1424a9bf4 +060fbd7d8d3c4fb8e27864e8cea4cffb6c8e9ef9 diff --git a/local/recipes/kde/kf6-kded6/source/.gitignore b/local/recipes/kde/kf6-kded6/source/.gitignore new file mode 100644 index 00000000..d84c8172 --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/.gitignore @@ -0,0 +1,28 @@ +# Ignore the following files +*~ +*.[oa] +*.diff +*.kate-swp +*.kdev4 +.kdev_include_paths +*.kdevelop.pcs +*.moc +*.moc.cpp +*.orig +*.user +.*.swp +.swp.* +Doxyfile +Makefile +avail +random_seed +/build*/ +CMakeLists.txt.user* +*.unc-backup* +.cmake/ +/.clang-format +/compile_commands.json +.clangd +.idea +/cmake-build* +.cache diff --git a/local/recipes/kde/kf6-kded6/source/.gitlab-ci.yml b/local/recipes/kde/kf6-kded6/source/.gitlab-ci.yml new file mode 100644 index 00000000..2f6b3598 --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/.gitlab-ci.yml @@ -0,0 +1,9 @@ +# SPDX-FileCopyrightText: 2020 Volker Krause +# SPDX-License-Identifier: CC0-1.0 + +include: + - project: sysadmin/ci-utilities + file: + - /gitlab-templates/linux-qt6.yml + - /gitlab-templates/alpine-qt6.yml + - /gitlab-templates/freebsd-qt6.yml diff --git a/local/recipes/kde/kf6-kded6/source/.kde-ci.yml b/local/recipes/kde/kf6-kded6/source/.kde-ci.yml new file mode 100644 index 00000000..146bc33b --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/.kde-ci.yml @@ -0,0 +1,14 @@ +Dependencies: +- 'on': ['Linux', 'FreeBSD', 'Windows'] + 'require': + 'frameworks/extra-cmake-modules': '@same' + 'frameworks/ki18n' : '@same' + 'frameworks/kcoreaddons' : '@same' + 'frameworks/kdbusaddons' : '@same' + 'frameworks/kservice' : '@same' + 'frameworks/kcrash' : '@same' + 'frameworks/kdoctools' : '@same' + +Options: + test-before-installing: True + require-passing-tests-on: [ 'Linux', 'FreeBSD' ] diff --git a/local/recipes/kde/kf6-kded6/source/CMakeLists.txt b/local/recipes/kde/kf6-kded6/source/CMakeLists.txt new file mode 100644 index 00000000..76fd8aa1 --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/CMakeLists.txt @@ -0,0 +1,86 @@ +cmake_minimum_required(VERSION 3.16) + +set(KF_VERSION "6.10.0") # handled by release scripts +set(KF_DEP_VERSION "6.10.0") # handled by release scripts +project(KDED VERSION ${KF_VERSION}) + +include(FeatureSummary) +find_package(ECM 6.10.0 NO_MODULE) +set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://commits.kde.org/extra-cmake-modules") +feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES) + +set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH}) + +set(REQUIRED_QT_VERSION 6.6.0) + +include(KDEInstallDirs) +include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE) +include(KDECMakeSettings) +include(KDEGitCommitHooks) +include(ECMDeprecationSettings) + +find_package(Qt6 "${REQUIRED_QT_VERSION}" CONFIG REQUIRED DBus Widgets) +find_package(KF6Config ${KF_DEP_VERSION} REQUIRED) +find_package(KF6CoreAddons ${KF_DEP_VERSION} REQUIRED) +find_package(KF6Crash ${KF_DEP_VERSION} REQUIRED) +find_package(KF6DBusAddons ${KF_DEP_VERSION} REQUIRED) +find_package(KF6DocTools ${KF_DEP_VERSION}) +find_package(KF6Service ${KF_DEP_VERSION} REQUIRED) + + +include(CMakePackageConfigHelpers) +include(ECMQtDeclareLoggingCategory) +include(ECMSetupVersion) +include(ECMMarkNonGuiExecutable) + +ecm_setup_version( + PROJECT + VARIABLE_PREFIX KDED + VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/src/kded_version.h" + PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF6KDEDConfigVersion.cmake" + SOVERSION 6) + +# We don't install kded_version.h, it's only useful internally +# (given that this framework produces no library) + +ecm_set_disabled_deprecation_versions( + QT 6.8.0 + KF 6.8.0 +) + +if (KF6DocTools_FOUND) + kdoctools_install(po) + add_subdirectory(docs) +endif() + +add_subdirectory(src) + +# Create a Config.cmake and a ConfigVersion.cmake file and install them +set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KF6KDED") + +configure_package_config_file( + "${CMAKE_CURRENT_SOURCE_DIR}/KF6KDEDConfig.cmake.in" + "${CMAKE_CURRENT_BINARY_DIR}/KF6KDEDConfig.cmake" + PATH_VARS KDE_INSTALL_DBUSINTERFACEDIR + INSTALL_DESTINATION "${CMAKECONFIG_INSTALL_DIR}" +) + +install(FILES + "${CMAKE_CURRENT_BINARY_DIR}/KF6KDEDConfig.cmake" + "${CMAKE_CURRENT_BINARY_DIR}/KF6KDEDConfigVersion.cmake" + DESTINATION "${CMAKECONFIG_INSTALL_DIR}" + COMPONENT Devel +) + +install(FILES org.kde.kded6.desktop DESTINATION ${KDE_INSTALL_APPDIR}) + +ecm_qt_install_logging_categories( + EXPORT KDED + FILE kded.categories + DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR} + ) + +include(ECMFeatureSummary) +ecm_feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) + +kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT) diff --git a/local/recipes/kde/kf6-kded6/source/KF6KDEDConfig.cmake.in b/local/recipes/kde/kf6-kded6/source/KF6KDEDConfig.cmake.in new file mode 100644 index 00000000..e248c01e --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/KF6KDEDConfig.cmake.in @@ -0,0 +1,3 @@ +@PACKAGE_INIT@ + +set(KDED_DBUS_INTERFACE "@PACKAGE_KDE_INSTALL_DBUSINTERFACEDIR@/org.kde.kded6.xml") diff --git a/local/recipes/kde/kf6-kded6/source/LICENSES/CC0-1.0.txt b/local/recipes/kde/kf6-kded6/source/LICENSES/CC0-1.0.txt new file mode 100644 index 00000000..0e259d42 --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/LICENSES/CC0-1.0.txt @@ -0,0 +1,121 @@ +Creative Commons Legal Code + +CC0 1.0 Universal + + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE + LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN + ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS + INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES + REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS + PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM + THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED + HEREUNDER. + +Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer +exclusive Copyright and Related Rights (defined below) upon the creator +and subsequent owner(s) (each and all, an "owner") of an original work of +authorship and/or a database (each, a "Work"). + +Certain owners wish to permanently relinquish those rights to a Work for +the purpose of contributing to a commons of creative, cultural and +scientific works ("Commons") that the public can reliably and without fear +of later claims of infringement build upon, modify, incorporate in other +works, reuse and redistribute as freely as possible in any form whatsoever +and for any purposes, including without limitation commercial purposes. +These owners may contribute to the Commons to promote the ideal of a free +culture and the further production of creative, cultural and scientific +works, or to gain reputation or greater distribution for their Work in +part through the use and efforts of others. + +For these and/or other purposes and motivations, and without any +expectation of additional consideration or compensation, the person +associating CC0 with a Work (the "Affirmer"), to the extent that he or she +is an owner of Copyright and Related Rights in the Work, voluntarily +elects to apply CC0 to the Work and publicly distribute the Work under its +terms, with knowledge of his or her Copyright and Related Rights in the +Work and the meaning and intended legal effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be +protected by copyright and related or neighboring rights ("Copyright and +Related Rights"). Copyright and Related Rights include, but are not +limited to, the following: + + i. the right to reproduce, adapt, distribute, perform, display, + communicate, and translate a Work; + ii. moral rights retained by the original author(s) and/or performer(s); +iii. publicity and privacy rights pertaining to a person's image or + likeness depicted in a Work; + iv. rights protecting against unfair competition in regards to a Work, + subject to the limitations in paragraph 4(a), below; + v. rights protecting the extraction, dissemination, use and reuse of data + in a Work; + vi. database rights (such as those arising under Directive 96/9/EC of the + European Parliament and of the Council of 11 March 1996 on the legal + protection of databases, and under any national implementation + thereof, including any amended or successor version of such + directive); and +vii. other similar, equivalent or corresponding rights throughout the + world based on applicable law or treaty, and any national + implementations thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention +of, applicable law, Affirmer hereby overtly, fully, permanently, +irrevocably and unconditionally waives, abandons, and surrenders all of +Affirmer's Copyright and Related Rights and associated claims and causes +of action, whether now known or unknown (including existing as well as +future claims and causes of action), in the Work (i) in all territories +worldwide, (ii) for the maximum duration provided by applicable law or +treaty (including future time extensions), (iii) in any current or future +medium and for any number of copies, and (iv) for any purpose whatsoever, +including without limitation commercial, advertising or promotional +purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each +member of the public at large and to the detriment of Affirmer's heirs and +successors, fully intending that such Waiver shall not be subject to +revocation, rescission, cancellation, termination, or any other legal or +equitable action to disrupt the quiet enjoyment of the Work by the public +as contemplated by Affirmer's express Statement of Purpose. + +3. Public License Fallback. Should any part of the Waiver for any reason +be judged legally invalid or ineffective under applicable law, then the +Waiver shall be preserved to the maximum extent permitted taking into +account Affirmer's express Statement of Purpose. In addition, to the +extent the Waiver is so judged Affirmer hereby grants to each affected +person a royalty-free, non transferable, non sublicensable, non exclusive, +irrevocable and unconditional license to exercise Affirmer's Copyright and +Related Rights in the Work (i) in all territories worldwide, (ii) for the +maximum duration provided by applicable law or treaty (including future +time extensions), (iii) in any current or future medium and for any number +of copies, and (iv) for any purpose whatsoever, including without +limitation commercial, advertising or promotional purposes (the +"License"). The License shall be deemed effective as of the date CC0 was +applied by Affirmer to the Work. Should any part of the License for any +reason be judged legally invalid or ineffective under applicable law, such +partial invalidity or ineffectiveness shall not invalidate the remainder +of the License, and in such case Affirmer hereby affirms that he or she +will not (i) exercise any of his or her remaining Copyright and Related +Rights in the Work or (ii) assert any associated claims and causes of +action with respect to the Work, in either case contrary to Affirmer's +express Statement of Purpose. + +4. Limitations and Disclaimers. + + a. No trademark or patent rights held by Affirmer are waived, abandoned, + surrendered, licensed or otherwise affected by this document. + b. Affirmer offers the Work as-is and makes no representations or + warranties of any kind concerning the Work, express, implied, + statutory or otherwise, including without limitation warranties of + title, merchantability, fitness for a particular purpose, non + infringement, or the absence of latent or other defects, accuracy, or + the present or absence of errors, whether or not discoverable, all to + the greatest extent permissible under applicable law. + c. Affirmer disclaims responsibility for clearing rights of other persons + that may apply to the Work or any use thereof, including without + limitation any person's Copyright and Related Rights in the Work. + Further, Affirmer disclaims responsibility for obtaining any necessary + consents, permissions or other rights required for any use of the + Work. + d. Affirmer understands and acknowledges that Creative Commons is not a + party to this document and has no duty or obligation with respect to + this CC0 or use of the Work. diff --git a/local/recipes/kde/kf6-kded6/source/LICENSES/LGPL-2.0-only.txt b/local/recipes/kde/kf6-kded6/source/LICENSES/LGPL-2.0-only.txt new file mode 100644 index 00000000..5c96471a --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/LICENSES/LGPL-2.0-only.txt @@ -0,0 +1,446 @@ +GNU LIBRARY GENERAL PUBLIC LICENSE + +Version 2, June 1991 Copyright (C) 1991 Free Software Foundation, Inc. + +51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + +Everyone is permitted to copy and distribute verbatim copies of this license +document, but changing it is not allowed. + +[This is the first released version of the library GPL. It is numbered 2 because +it goes with version 2 of the ordinary GPL.] + +Preamble + +The licenses for most software are designed to take away your freedom to share +and change it. By contrast, the GNU General Public Licenses are intended to +guarantee your freedom to share and change free software--to make sure the +software is free for all its users. + +This license, the Library General Public License, applies to some specially +designated Free Software Foundation software, and to any other libraries whose +authors decide to use it. You can use it for your libraries, too. + +When we speak of free software, we are referring to freedom, not price. Our +General Public Licenses are designed to make sure that you have the freedom +to distribute copies of free software (and charge for this service if you +wish), that you receive source code or can get it if you want it, that you +can change the software or use pieces of it in new free programs; and that +you know you can do these things. + +To protect your rights, we need to make restrictions that forbid anyone to +deny you these rights or to ask you to surrender the rights. These restrictions +translate to certain responsibilities for you if you distribute copies of +the library, or if you modify it. + +For example, if you distribute copies of the library, whether gratis or for +a fee, you must give the recipients all the rights that we gave you. You must +make sure that they, too, receive or can get the source code. If you link +a program with the library, you must provide complete object files to the +recipients so that they can relink them with the library, after making changes +to the library and recompiling it. And you must show them these terms so they +know their rights. + +Our method of protecting your rights has two steps: (1) copyright the library, +and (2) offer you this license which gives you legal permission to copy, distribute +and/or modify the library. + +Also, for each distributor's protection, we want to make certain that everyone +understands that there is no warranty for this free library. If the library +is modified by someone else and passed on, we want its recipients to know +that what they have is not the original version, so that any problems introduced +by others will not reflect on the original authors' reputations. + +Finally, any free program is threatened constantly by software patents. We +wish to avoid the danger that companies distributing free software will individually +obtain patent licenses, thus in effect transforming the program into proprietary +software. To prevent this, we have made it clear that any patent must be licensed +for everyone's free use or not licensed at all. + +Most GNU software, including some libraries, is covered by the ordinary GNU +General Public License, which was designed for utility programs. This license, +the GNU Library General Public License, applies to certain designated libraries. +This license is quite different from the ordinary one; be sure to read it +in full, and don't assume that anything in it is the same as in the ordinary +license. + +The reason we have a separate public license for some libraries is that they +blur the distinction we usually make between modifying or adding to a program +and simply using it. Linking a program with a library, without changing the +library, is in some sense simply using the library, and is analogous to running +a utility program or application program. However, in a textual and legal +sense, the linked executable is a combined work, a derivative of the original +library, and the ordinary General Public License treats it as such. + +Because of this blurred distinction, using the ordinary General Public License +for libraries did not effectively promote software sharing, because most developers +did not use the libraries. We concluded that weaker conditions might promote +sharing better. + +However, unrestricted linking of non-free programs would deprive the users +of those programs of all benefit from the free status of the libraries themselves. +This Library General Public License is intended to permit developers of non-free +programs to use free libraries, while preserving your freedom as a user of +such programs to change the free libraries that are incorporated in them. +(We have not seen how to achieve this as regards changes in header files, +but we have achieved it as regards changes in the actual functions of the +Library.) The hope is that this will lead to faster development of free libraries. + +The precise terms and conditions for copying, distribution and modification +follow. Pay close attention to the difference between a "work based on the +library" and a "work that uses the library". The former contains code derived +from the library, while the latter only works together with the library. + +Note that it is possible for a library to be covered by the ordinary General +Public License rather than by this special one. + +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + +0. This License Agreement applies to any software library which contains a +notice placed by the copyright holder or other authorized party saying it +may be distributed under the terms of this Library General Public License +(also called "this License"). Each licensee is addressed as "you". + +A "library" means a collection of software functions and/or data prepared +so as to be conveniently linked with application programs (which use some +of those functions and data) to form executables. + +The "Library", below, refers to any such software library or work which has +been distributed under these terms. A "work based on the Library" means either +the Library or any derivative work under copyright law: that is to say, a +work containing the Library or a portion of it, either verbatim or with modifications +and/or translated straightforwardly into another language. (Hereinafter, translation +is included without limitation in the term "modification".) + +"Source code" for a work means the preferred form of the work for making modifications +to it. For a library, complete source code means all the source code for all +modules it contains, plus any associated interface definition files, plus +the scripts used to control compilation and installation of the library. + +Activities other than copying, distribution and modification are not covered +by this License; they are outside its scope. The act of running a program +using the Library is not restricted, and output from such a program is covered +only if its contents constitute a work based on the Library (independent of +the use of the Library in a tool for writing it). Whether that is true depends +on what the Library does and what the program that uses the Library does. + +1. You may copy and distribute verbatim copies of the Library's complete source +code as you receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice and disclaimer +of warranty; keep intact all the notices that refer to this License and to +the absence of any warranty; and distribute a copy of this License along with +the Library. + +You may charge a fee for the physical act of transferring a copy, and you +may at your option offer warranty protection in exchange for a fee. + +2. You may modify your copy or copies of the Library or any portion of it, +thus forming a work based on the Library, and copy and distribute such modifications +or work under the terms of Section 1 above, provided that you also meet all +of these conditions: + + a) The modified work must itself be a software library. + +b) You must cause the files modified to carry prominent notices stating that +you changed the files and the date of any change. + +c) You must cause the whole of the work to be licensed at no charge to all +third parties under the terms of this License. + +d) If a facility in the modified Library refers to a function or a table of +data to be supplied by an application program that uses the facility, other +than as an argument passed when the facility is invoked, then you must make +a good faith effort to ensure that, in the event an application does not supply +such function or table, the facility still operates, and performs whatever +part of its purpose remains meaningful. + +(For example, a function in a library to compute square roots has a purpose +that is entirely well-defined independent of the application. Therefore, Subsection +2d requires that any application-supplied function or table used by this function +must be optional: if the application does not supply it, the square root function +must still compute square roots.) + +These requirements apply to the modified work as a whole. If identifiable +sections of that work are not derived from the Library, and can be reasonably +considered independent and separate works in themselves, then this License, +and its terms, do not apply to those sections when you distribute them as +separate works. But when you distribute the same sections as part of a whole +which is a work based on the Library, the distribution of the whole must be +on the terms of this License, whose permissions for other licensees extend +to the entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest your +rights to work written entirely by you; rather, the intent is to exercise +the right to control the distribution of derivative or collective works based +on the Library. + +In addition, mere aggregation of another work not based on the Library with +the Library (or with a work based on the Library) on a volume of a storage +or distribution medium does not bring the other work under the scope of this +License. + +3. You may opt to apply the terms of the ordinary GNU General Public License +instead of this License to a given copy of the Library. To do this, you must +alter all the notices that refer to this License, so that they refer to the +ordinary GNU General Public License, version 2, instead of to this License. +(If a newer version than version 2 of the ordinary GNU General Public License +has appeared, then you can specify that version instead if you wish.) Do not +make any other change in these notices. + +Once this change is made in a given copy, it is irreversible for that copy, +so the ordinary GNU General Public License applies to all subsequent copies +and derivative works made from that copy. + +This option is useful when you wish to copy part of the code of the Library +into a program that is not a library. + +4. You may copy and distribute the Library (or a portion or derivative of +it, under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you accompany it with the complete corresponding +machine-readable source code, which must be distributed under the terms of +Sections 1 and 2 above on a medium customarily used for software interchange. + +If distribution of object code is made by offering access to copy from a designated +place, then offering equivalent access to copy the source code from the same +place satisfies the requirement to distribute the source code, even though +third parties are not compelled to copy the source along with the object code. + +5. A program that contains no derivative of any portion of the Library, but +is designed to work with the Library by being compiled or linked with it, +is called a "work that uses the Library". Such a work, in isolation, is not +a derivative work of the Library, and therefore falls outside the scope of +this License. + +However, linking a "work that uses the Library" with the Library creates an +executable that is a derivative of the Library (because it contains portions +of the Library), rather than a "work that uses the library". The executable +is therefore covered by this License. Section 6 states terms for distribution +of such executables. + +When a "work that uses the Library" uses material from a header file that +is part of the Library, the object code for the work may be a derivative work +of the Library even though the source code is not. Whether this is true is +especially significant if the work can be linked without the Library, or if +the work is itself a library. The threshold for this to be true is not precisely +defined by law. + +If such an object file uses only numerical parameters, data structure layouts +and accessors, and small macros and small inline functions (ten lines or less +in length), then the use of the object file is unrestricted, regardless of +whether it is legally a derivative work. (Executables containing this object +code plus portions of the Library will still fall under Section 6.) + +Otherwise, if the work is a derivative of the Library, you may distribute +the object code for the work under the terms of Section 6. Any executables +containing that work also fall under Section 6, whether or not they are linked +directly with the Library itself. + +6. As an exception to the Sections above, you may also compile or link a "work +that uses the Library" with the Library to produce a work containing portions +of the Library, and distribute that work under terms of your choice, provided +that the terms permit modification of the work for the customer's own use +and reverse engineering for debugging such modifications. + +You must give prominent notice with each copy of the work that the Library +is used in it and that the Library and its use are covered by this License. +You must supply a copy of this License. If the work during execution displays +copyright notices, you must include the copyright notice for the Library among +them, as well as a reference directing the user to the copy of this License. +Also, you must do one of these things: + +a) Accompany the work with the complete corresponding machine-readable source +code for the Library including whatever changes were used in the work (which +must be distributed under Sections 1 and 2 above); and, if the work is an +executable linked with the Library, with the complete machine-readable "work +that uses the Library", as object code and/or source code, so that the user +can modify the Library and then relink to produce a modified executable containing +the modified Library. (It is understood that the user who changes the contents +of definitions files in the Library will not necessarily be able to recompile +the application to use the modified definitions.) + +b) Accompany the work with a written offer, valid for at least three years, +to give the same user the materials specified in Subsection 6a, above, for +a charge no more than the cost of performing this distribution. + +c) If distribution of the work is made by offering access to copy from a designated +place, offer equivalent access to copy the above specified materials from +the same place. + +d) Verify that the user has already received a copy of these materials or +that you have already sent this user a copy. + +For an executable, the required form of the "work that uses the Library" must +include any data and utility programs needed for reproducing the executable +from it. However, as a special exception, the source code distributed need +not include anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the operating +system on which the executable runs, unless that component itself accompanies +the executable. + +It may happen that this requirement contradicts the license restrictions of +other proprietary libraries that do not normally accompany the operating system. +Such a contradiction means you cannot use both them and the Library together +in an executable that you distribute. + +7. You may place library facilities that are a work based on the Library side-by-side +in a single library together with other library facilities not covered by +this License, and distribute such a combined library, provided that the separate +distribution of the work based on the Library and of the other library facilities +is otherwise permitted, and provided that you do these two things: + +a) Accompany the combined library with a copy of the same work based on the +Library, uncombined with any other library facilities. This must be distributed +under the terms of the Sections above. + +b) Give prominent notice with the combined library of the fact that part of +it is a work based on the Library, and explaining where to find the accompanying +uncombined form of the same work. + +8. You may not copy, modify, sublicense, link with, or distribute the Library +except as expressly provided under this License. Any attempt otherwise to +copy, modify, sublicense, link with, or distribute the Library is void, and +will automatically terminate your rights under this License. However, parties +who have received copies, or rights, from you under this License will not +have their licenses terminated so long as such parties remain in full compliance. + +9. You are not required to accept this License, since you have not signed +it. However, nothing else grants you permission to modify or distribute the +Library or its derivative works. These actions are prohibited by law if you +do not accept this License. Therefore, by modifying or distributing the Library +(or any work based on the Library), you indicate your acceptance of this License +to do so, and all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + +10. Each time you redistribute the Library (or any work based on the Library), +the recipient automatically receives a license from the original licensor +to copy, distribute, link with or modify the Library subject to these terms +and conditions. You may not impose any further restrictions on the recipients' +exercise of the rights granted herein. You are not responsible for enforcing +compliance by third parties to this License. + +11. If, as a consequence of a court judgment or allegation of patent infringement +or for any other reason (not limited to patent issues), conditions are imposed +on you (whether by court order, agreement or otherwise) that contradict the +conditions of this License, they do not excuse you from the conditions of +this License. If you cannot distribute so as to satisfy simultaneously your +obligations under this License and any other pertinent obligations, then as +a consequence you may not distribute the Library at all. For example, if a +patent license would not permit royalty-free redistribution of the Library +by all those who receive copies directly or indirectly through you, then the +only way you could satisfy both it and this License would be to refrain entirely +from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any patents +or other property right claims or to contest validity of any such claims; +this section has the sole purpose of protecting the integrity of the free +software distribution system which is implemented by public license practices. +Many people have made generous contributions to the wide range of software +distributed through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing to +distribute software through any other system and a licensee cannot impose +that choice. + +This section is intended to make thoroughly clear what is believed to be a +consequence of the rest of this License. + +12. If the distribution and/or use of the Library is restricted in certain +countries either by patents or by copyrighted interfaces, the original copyright +holder who places the Library under this License may add an explicit geographical +distribution limitation excluding those countries, so that distribution is +permitted only in or among countries not thus excluded. In such case, this +License incorporates the limitation as if written in the body of this License. + +13. The Free Software Foundation may publish revised and/or new versions of +the Library General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to address +new problems or concerns. + +Each version is given a distinguishing version number. If the Library specifies +a version number of this License which applies to it and "any later version", +you have the option of following the terms and conditions either of that version +or of any later version published by the Free Software Foundation. If the +Library does not specify a license version number, you may choose any version +ever published by the Free Software Foundation. + +14. If you wish to incorporate parts of the Library into other free programs +whose distribution conditions are incompatible with these, write to the author +to ask for permission. For software which is copyrighted by the Free Software +Foundation, write to the Free Software Foundation; we sometimes make exceptions +for this. Our decision will be guided by the two goals of preserving the free +status of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + +15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR +THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE +STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY +"AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, +BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE +OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE +THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE +OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA +OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES +OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH +HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. +END OF TERMS AND CONDITIONS + +How to Apply These Terms to Your New Libraries + +If you develop a new library, and you want it to be of the greatest possible +use to the public, we recommend making it free software that everyone can +redistribute and change. You can do so by permitting redistribution under +these terms (or, alternatively, under the terms of the ordinary General Public +License). + +To apply these terms, attach the following notices to the library. It is safest +to attach them to the start of each source file to most effectively convey +the exclusion of warranty; and each file should have at least the "copyright" +line and a pointer to where the full notice is found. + +one line to give the library's name and an idea of what it does. + +Copyright (C) year name of author + +This library is free software; you can redistribute it and/or modify it under +the terms of the GNU Library General Public License as published by the Free +Software Foundation; either version 2 of the License, or (at your option) +any later version. + +This library 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 Library General Public License for more +details. + +You should have received a copy of the GNU Library General Public License +along with this library; if not, write to the Free Software Foundation, Inc., +51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your school, +if any, to sign a "copyright disclaimer" for the library, if necessary. Here +is a sample; alter the names: + +Yoyodyne, Inc., hereby disclaims all copyright interest in + +the library `Frob' (a library for tweaking knobs) written + +by James Random Hacker. + +signature of Ty Coon, 1 April 1990 + +Ty Coon, President of Vice + +That's all there is to it! diff --git a/local/recipes/kde/kf6-kded6/source/LICENSES/LGPL-2.0-or-later.txt b/local/recipes/kde/kf6-kded6/source/LICENSES/LGPL-2.0-or-later.txt new file mode 100644 index 00000000..5c96471a --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/LICENSES/LGPL-2.0-or-later.txt @@ -0,0 +1,446 @@ +GNU LIBRARY GENERAL PUBLIC LICENSE + +Version 2, June 1991 Copyright (C) 1991 Free Software Foundation, Inc. + +51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + +Everyone is permitted to copy and distribute verbatim copies of this license +document, but changing it is not allowed. + +[This is the first released version of the library GPL. It is numbered 2 because +it goes with version 2 of the ordinary GPL.] + +Preamble + +The licenses for most software are designed to take away your freedom to share +and change it. By contrast, the GNU General Public Licenses are intended to +guarantee your freedom to share and change free software--to make sure the +software is free for all its users. + +This license, the Library General Public License, applies to some specially +designated Free Software Foundation software, and to any other libraries whose +authors decide to use it. You can use it for your libraries, too. + +When we speak of free software, we are referring to freedom, not price. Our +General Public Licenses are designed to make sure that you have the freedom +to distribute copies of free software (and charge for this service if you +wish), that you receive source code or can get it if you want it, that you +can change the software or use pieces of it in new free programs; and that +you know you can do these things. + +To protect your rights, we need to make restrictions that forbid anyone to +deny you these rights or to ask you to surrender the rights. These restrictions +translate to certain responsibilities for you if you distribute copies of +the library, or if you modify it. + +For example, if you distribute copies of the library, whether gratis or for +a fee, you must give the recipients all the rights that we gave you. You must +make sure that they, too, receive or can get the source code. If you link +a program with the library, you must provide complete object files to the +recipients so that they can relink them with the library, after making changes +to the library and recompiling it. And you must show them these terms so they +know their rights. + +Our method of protecting your rights has two steps: (1) copyright the library, +and (2) offer you this license which gives you legal permission to copy, distribute +and/or modify the library. + +Also, for each distributor's protection, we want to make certain that everyone +understands that there is no warranty for this free library. If the library +is modified by someone else and passed on, we want its recipients to know +that what they have is not the original version, so that any problems introduced +by others will not reflect on the original authors' reputations. + +Finally, any free program is threatened constantly by software patents. We +wish to avoid the danger that companies distributing free software will individually +obtain patent licenses, thus in effect transforming the program into proprietary +software. To prevent this, we have made it clear that any patent must be licensed +for everyone's free use or not licensed at all. + +Most GNU software, including some libraries, is covered by the ordinary GNU +General Public License, which was designed for utility programs. This license, +the GNU Library General Public License, applies to certain designated libraries. +This license is quite different from the ordinary one; be sure to read it +in full, and don't assume that anything in it is the same as in the ordinary +license. + +The reason we have a separate public license for some libraries is that they +blur the distinction we usually make between modifying or adding to a program +and simply using it. Linking a program with a library, without changing the +library, is in some sense simply using the library, and is analogous to running +a utility program or application program. However, in a textual and legal +sense, the linked executable is a combined work, a derivative of the original +library, and the ordinary General Public License treats it as such. + +Because of this blurred distinction, using the ordinary General Public License +for libraries did not effectively promote software sharing, because most developers +did not use the libraries. We concluded that weaker conditions might promote +sharing better. + +However, unrestricted linking of non-free programs would deprive the users +of those programs of all benefit from the free status of the libraries themselves. +This Library General Public License is intended to permit developers of non-free +programs to use free libraries, while preserving your freedom as a user of +such programs to change the free libraries that are incorporated in them. +(We have not seen how to achieve this as regards changes in header files, +but we have achieved it as regards changes in the actual functions of the +Library.) The hope is that this will lead to faster development of free libraries. + +The precise terms and conditions for copying, distribution and modification +follow. Pay close attention to the difference between a "work based on the +library" and a "work that uses the library". The former contains code derived +from the library, while the latter only works together with the library. + +Note that it is possible for a library to be covered by the ordinary General +Public License rather than by this special one. + +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + +0. This License Agreement applies to any software library which contains a +notice placed by the copyright holder or other authorized party saying it +may be distributed under the terms of this Library General Public License +(also called "this License"). Each licensee is addressed as "you". + +A "library" means a collection of software functions and/or data prepared +so as to be conveniently linked with application programs (which use some +of those functions and data) to form executables. + +The "Library", below, refers to any such software library or work which has +been distributed under these terms. A "work based on the Library" means either +the Library or any derivative work under copyright law: that is to say, a +work containing the Library or a portion of it, either verbatim or with modifications +and/or translated straightforwardly into another language. (Hereinafter, translation +is included without limitation in the term "modification".) + +"Source code" for a work means the preferred form of the work for making modifications +to it. For a library, complete source code means all the source code for all +modules it contains, plus any associated interface definition files, plus +the scripts used to control compilation and installation of the library. + +Activities other than copying, distribution and modification are not covered +by this License; they are outside its scope. The act of running a program +using the Library is not restricted, and output from such a program is covered +only if its contents constitute a work based on the Library (independent of +the use of the Library in a tool for writing it). Whether that is true depends +on what the Library does and what the program that uses the Library does. + +1. You may copy and distribute verbatim copies of the Library's complete source +code as you receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice and disclaimer +of warranty; keep intact all the notices that refer to this License and to +the absence of any warranty; and distribute a copy of this License along with +the Library. + +You may charge a fee for the physical act of transferring a copy, and you +may at your option offer warranty protection in exchange for a fee. + +2. You may modify your copy or copies of the Library or any portion of it, +thus forming a work based on the Library, and copy and distribute such modifications +or work under the terms of Section 1 above, provided that you also meet all +of these conditions: + + a) The modified work must itself be a software library. + +b) You must cause the files modified to carry prominent notices stating that +you changed the files and the date of any change. + +c) You must cause the whole of the work to be licensed at no charge to all +third parties under the terms of this License. + +d) If a facility in the modified Library refers to a function or a table of +data to be supplied by an application program that uses the facility, other +than as an argument passed when the facility is invoked, then you must make +a good faith effort to ensure that, in the event an application does not supply +such function or table, the facility still operates, and performs whatever +part of its purpose remains meaningful. + +(For example, a function in a library to compute square roots has a purpose +that is entirely well-defined independent of the application. Therefore, Subsection +2d requires that any application-supplied function or table used by this function +must be optional: if the application does not supply it, the square root function +must still compute square roots.) + +These requirements apply to the modified work as a whole. If identifiable +sections of that work are not derived from the Library, and can be reasonably +considered independent and separate works in themselves, then this License, +and its terms, do not apply to those sections when you distribute them as +separate works. But when you distribute the same sections as part of a whole +which is a work based on the Library, the distribution of the whole must be +on the terms of this License, whose permissions for other licensees extend +to the entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest your +rights to work written entirely by you; rather, the intent is to exercise +the right to control the distribution of derivative or collective works based +on the Library. + +In addition, mere aggregation of another work not based on the Library with +the Library (or with a work based on the Library) on a volume of a storage +or distribution medium does not bring the other work under the scope of this +License. + +3. You may opt to apply the terms of the ordinary GNU General Public License +instead of this License to a given copy of the Library. To do this, you must +alter all the notices that refer to this License, so that they refer to the +ordinary GNU General Public License, version 2, instead of to this License. +(If a newer version than version 2 of the ordinary GNU General Public License +has appeared, then you can specify that version instead if you wish.) Do not +make any other change in these notices. + +Once this change is made in a given copy, it is irreversible for that copy, +so the ordinary GNU General Public License applies to all subsequent copies +and derivative works made from that copy. + +This option is useful when you wish to copy part of the code of the Library +into a program that is not a library. + +4. You may copy and distribute the Library (or a portion or derivative of +it, under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you accompany it with the complete corresponding +machine-readable source code, which must be distributed under the terms of +Sections 1 and 2 above on a medium customarily used for software interchange. + +If distribution of object code is made by offering access to copy from a designated +place, then offering equivalent access to copy the source code from the same +place satisfies the requirement to distribute the source code, even though +third parties are not compelled to copy the source along with the object code. + +5. A program that contains no derivative of any portion of the Library, but +is designed to work with the Library by being compiled or linked with it, +is called a "work that uses the Library". Such a work, in isolation, is not +a derivative work of the Library, and therefore falls outside the scope of +this License. + +However, linking a "work that uses the Library" with the Library creates an +executable that is a derivative of the Library (because it contains portions +of the Library), rather than a "work that uses the library". The executable +is therefore covered by this License. Section 6 states terms for distribution +of such executables. + +When a "work that uses the Library" uses material from a header file that +is part of the Library, the object code for the work may be a derivative work +of the Library even though the source code is not. Whether this is true is +especially significant if the work can be linked without the Library, or if +the work is itself a library. The threshold for this to be true is not precisely +defined by law. + +If such an object file uses only numerical parameters, data structure layouts +and accessors, and small macros and small inline functions (ten lines or less +in length), then the use of the object file is unrestricted, regardless of +whether it is legally a derivative work. (Executables containing this object +code plus portions of the Library will still fall under Section 6.) + +Otherwise, if the work is a derivative of the Library, you may distribute +the object code for the work under the terms of Section 6. Any executables +containing that work also fall under Section 6, whether or not they are linked +directly with the Library itself. + +6. As an exception to the Sections above, you may also compile or link a "work +that uses the Library" with the Library to produce a work containing portions +of the Library, and distribute that work under terms of your choice, provided +that the terms permit modification of the work for the customer's own use +and reverse engineering for debugging such modifications. + +You must give prominent notice with each copy of the work that the Library +is used in it and that the Library and its use are covered by this License. +You must supply a copy of this License. If the work during execution displays +copyright notices, you must include the copyright notice for the Library among +them, as well as a reference directing the user to the copy of this License. +Also, you must do one of these things: + +a) Accompany the work with the complete corresponding machine-readable source +code for the Library including whatever changes were used in the work (which +must be distributed under Sections 1 and 2 above); and, if the work is an +executable linked with the Library, with the complete machine-readable "work +that uses the Library", as object code and/or source code, so that the user +can modify the Library and then relink to produce a modified executable containing +the modified Library. (It is understood that the user who changes the contents +of definitions files in the Library will not necessarily be able to recompile +the application to use the modified definitions.) + +b) Accompany the work with a written offer, valid for at least three years, +to give the same user the materials specified in Subsection 6a, above, for +a charge no more than the cost of performing this distribution. + +c) If distribution of the work is made by offering access to copy from a designated +place, offer equivalent access to copy the above specified materials from +the same place. + +d) Verify that the user has already received a copy of these materials or +that you have already sent this user a copy. + +For an executable, the required form of the "work that uses the Library" must +include any data and utility programs needed for reproducing the executable +from it. However, as a special exception, the source code distributed need +not include anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the operating +system on which the executable runs, unless that component itself accompanies +the executable. + +It may happen that this requirement contradicts the license restrictions of +other proprietary libraries that do not normally accompany the operating system. +Such a contradiction means you cannot use both them and the Library together +in an executable that you distribute. + +7. You may place library facilities that are a work based on the Library side-by-side +in a single library together with other library facilities not covered by +this License, and distribute such a combined library, provided that the separate +distribution of the work based on the Library and of the other library facilities +is otherwise permitted, and provided that you do these two things: + +a) Accompany the combined library with a copy of the same work based on the +Library, uncombined with any other library facilities. This must be distributed +under the terms of the Sections above. + +b) Give prominent notice with the combined library of the fact that part of +it is a work based on the Library, and explaining where to find the accompanying +uncombined form of the same work. + +8. You may not copy, modify, sublicense, link with, or distribute the Library +except as expressly provided under this License. Any attempt otherwise to +copy, modify, sublicense, link with, or distribute the Library is void, and +will automatically terminate your rights under this License. However, parties +who have received copies, or rights, from you under this License will not +have their licenses terminated so long as such parties remain in full compliance. + +9. You are not required to accept this License, since you have not signed +it. However, nothing else grants you permission to modify or distribute the +Library or its derivative works. These actions are prohibited by law if you +do not accept this License. Therefore, by modifying or distributing the Library +(or any work based on the Library), you indicate your acceptance of this License +to do so, and all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + +10. Each time you redistribute the Library (or any work based on the Library), +the recipient automatically receives a license from the original licensor +to copy, distribute, link with or modify the Library subject to these terms +and conditions. You may not impose any further restrictions on the recipients' +exercise of the rights granted herein. You are not responsible for enforcing +compliance by third parties to this License. + +11. If, as a consequence of a court judgment or allegation of patent infringement +or for any other reason (not limited to patent issues), conditions are imposed +on you (whether by court order, agreement or otherwise) that contradict the +conditions of this License, they do not excuse you from the conditions of +this License. If you cannot distribute so as to satisfy simultaneously your +obligations under this License and any other pertinent obligations, then as +a consequence you may not distribute the Library at all. For example, if a +patent license would not permit royalty-free redistribution of the Library +by all those who receive copies directly or indirectly through you, then the +only way you could satisfy both it and this License would be to refrain entirely +from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any patents +or other property right claims or to contest validity of any such claims; +this section has the sole purpose of protecting the integrity of the free +software distribution system which is implemented by public license practices. +Many people have made generous contributions to the wide range of software +distributed through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing to +distribute software through any other system and a licensee cannot impose +that choice. + +This section is intended to make thoroughly clear what is believed to be a +consequence of the rest of this License. + +12. If the distribution and/or use of the Library is restricted in certain +countries either by patents or by copyrighted interfaces, the original copyright +holder who places the Library under this License may add an explicit geographical +distribution limitation excluding those countries, so that distribution is +permitted only in or among countries not thus excluded. In such case, this +License incorporates the limitation as if written in the body of this License. + +13. The Free Software Foundation may publish revised and/or new versions of +the Library General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to address +new problems or concerns. + +Each version is given a distinguishing version number. If the Library specifies +a version number of this License which applies to it and "any later version", +you have the option of following the terms and conditions either of that version +or of any later version published by the Free Software Foundation. If the +Library does not specify a license version number, you may choose any version +ever published by the Free Software Foundation. + +14. If you wish to incorporate parts of the Library into other free programs +whose distribution conditions are incompatible with these, write to the author +to ask for permission. For software which is copyrighted by the Free Software +Foundation, write to the Free Software Foundation; we sometimes make exceptions +for this. Our decision will be guided by the two goals of preserving the free +status of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + +15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR +THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE +STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY +"AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, +BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE +OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE +THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE +OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA +OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES +OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH +HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. +END OF TERMS AND CONDITIONS + +How to Apply These Terms to Your New Libraries + +If you develop a new library, and you want it to be of the greatest possible +use to the public, we recommend making it free software that everyone can +redistribute and change. You can do so by permitting redistribution under +these terms (or, alternatively, under the terms of the ordinary General Public +License). + +To apply these terms, attach the following notices to the library. It is safest +to attach them to the start of each source file to most effectively convey +the exclusion of warranty; and each file should have at least the "copyright" +line and a pointer to where the full notice is found. + +one line to give the library's name and an idea of what it does. + +Copyright (C) year name of author + +This library is free software; you can redistribute it and/or modify it under +the terms of the GNU Library General Public License as published by the Free +Software Foundation; either version 2 of the License, or (at your option) +any later version. + +This library 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 Library General Public License for more +details. + +You should have received a copy of the GNU Library General Public License +along with this library; if not, write to the Free Software Foundation, Inc., +51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your school, +if any, to sign a "copyright disclaimer" for the library, if necessary. Here +is a sample; alter the names: + +Yoyodyne, Inc., hereby disclaims all copyright interest in + +the library `Frob' (a library for tweaking knobs) written + +by James Random Hacker. + +signature of Ty Coon, 1 April 1990 + +Ty Coon, President of Vice + +That's all there is to it! diff --git a/local/recipes/kde/kf6-kded6/source/README.md b/local/recipes/kde/kf6-kded6/source/README.md new file mode 100644 index 00000000..f48825b2 --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/README.md @@ -0,0 +1,97 @@ +# KDED + +Central daemon of KDE work spaces + +## Introduction + +KDED stands for KDE Daemon which isn't very descriptive. +KDED runs in the background and performs a number of small tasks. +Some of these tasks are built in, others are started on demand. + +### Built in tasks + +* Checking for newly installed software and updating ksycoca when new + software is detected. Updating of ksycoca is done by the program kbuildsycoca + which gets started by kded. When kded is first started it always runs + kbuildsycoca to ensure that ksycoca is up to date. + +* Checking for newly installed update files. Applications can install + \*.upd update files. These \*.upd files are used to update configuration files + of users, primarily when new versions of applications are installed with + (slightly) different configuration file formats. Updating of configuration + files is done by kconf\_update. kded starts kconf\_update when it detects a + new update file. When kded is first started it always runs kconf\_update to + ensure that it has not missed any update files. kconf\_update keeps track + of which update files have been processed already in the config-file + kconf\_updaterc. It only performs a certain update once. + +### Configuration of built in tasks. + +The built in tasks have some configuration options that can be changed by +editing the kdedrc configuration file. Changes need to be made with a text +editor, there is no GUI available. All options are listed under the [General] +group: + +**HostnamePollInterval**: This can be used to adjust the time interval at which +the hostname is checked for changes. The time is specified in milliseconds +and has a default of 5000 (5 seconds). + +**CheckSycoca**: This option can be used to disable checking for new software. +ksycoca will still be built when kded starts up and when applications +explicitly request a rebuild of the ksycoca database. The user can +also manually rebuild ksycoca by running the kbuildsycoca program. +The default value of this option is "true". Checking can be disabled by +setting this option to "false". + +**CheckUpdates**: This option can be used to disable checking for update files. +kconf\_update will still be run when kded starts up. +The default value of this option is "true". Checking can be disabled by +setting this option to "false". + +**CheckHostname**: This option can be used to disable checking for hostname +changes. The default value of this option is "true". Checking can be +disabled by setting this option to "false". + +Example kdedrc file with default values: + + [General] + HostnamePollInterval=5000 + CheckSycoca=true + CheckUpdates=true + CheckHostname=true + CheckFileStamps=true + DelayedCheck=false + +If FAM or DNOTIFY is not available, the filesystem will be polled at regular interval for any changes. Under the [DirWatch] group in the kdeglobals file +the following options are available to adjust the polling frequency: + +**PollInterval**: This can be used to adjust the time interval at which the local +filesystem is checked for new software or update files. The time is specified +in milliseconds and has a default of 500 (0.5 seconds). + +**NFSPollInterval**: This can be used to adjust the time interval at which remote +filesystems, such as NFS or Samba, are ebing checked for new software or +update files. The time is specified in milliseconds and has a default of 5000 +(5 seconds). + +The above options are not used when FAM is used to watch for changes in the +filesystem, or when DNOTIFY is used. Specifying larger intervals may reduce +the CPU load and/or network traffic. Shorter intervals are not recommended. + +Please note that in previous versions of KDE these options where listed in +the kderc file. + +Example kdeglobals fragment: + + [DirWatch] + PollInterval=500 + NFSPollInterval=5000 + +### KDED modules + +Some things can be greatly simplified if they can be coordinated from a +central place. KDED has support for modules that will be demand-loaded +whenever an application attempts to make DBus call to the module. +This can be useful for central administration tasks. + +See docs/HOWTO. diff --git a/local/recipes/kde/kf6-kded6/source/docs/CMakeLists.txt b/local/recipes/kde/kf6-kded6/source/docs/CMakeLists.txt new file mode 100644 index 00000000..2493c8a4 --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/docs/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(kded6) diff --git a/local/recipes/kde/kf6-kded6/source/docs/DESIGN b/local/recipes/kde/kf6-kded6/source/docs/DESIGN new file mode 100644 index 00000000..e357460e --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/docs/DESIGN @@ -0,0 +1,93 @@ +kded +==== + +kded is responsible for creating the sycoca file, i.e. the binary +cache of servicetypes, mimetypes, and services for a particular user. + +It uses KDirWatch to monitor the directories containing .desktop files. +When a file is added/removed, it waits 5 seconds (in case of series of +updates), and then launches kbuildsycoca. + +kbuildsycoca recreates the sycoca file by: +* parsing all .desktop files, replacing global ones by local ones (at any + level of the hierarchy) +* creating all objects in memory +* saving everything in the sycoca file (see below for ksycoca internals) +* clearing all memory +* notifying the applications that use ksycoca by a DBUS signal emitted to +the ksycoca object (KSycoca::notifyDatabaseChanged()). + +Format of the sycoca database file +================================== + +* Version + +List of factories + | * Factory id, Factory offset + | * Factory id, Factory offset + | * ... + | * 0 + +* KDE prefixes +* timestamp +* KDE language +* resource hash +* list of all resource dirs + +For each factory + | Header + | * offset of the dict + | * offset of the beginning of the entries + | * offset of the end of the entries + | Rest of the header (factory-specific), for instance: + | * Offer-list offset + | * Mimetype-patterns index offset (fast patterns) + | * Mimetype-patterns index offset (other) + | * Entry size in the mimetype-patterns index ("fast" part) + | + | KSycocaEntries + | | * entry type + | | Entry + | | | entry-dependent information + | | ... + | | + | Dict + | | * hashtable size + | | Hash list + | | | * list of values used to compute a hash key + | | Hash table + | | | * id (positive = entry offset) + | | | * id (negative = - offset in duplicates list ) + | | | * 0 if no entry for that hash value + | | Table of duplicates + | | | * entry offset, key + | | | * entry offset, key + | + +Offer list +| * servicetype offset, service offset +| * servicetype offset, service offset +| * servicetype offset, service offset +| * servicetype offset, service offset +| * mimetype offset, service offset +| * mimetype offset, service offset +| * mimetype offset, service offset +| * mimetype offset, service offset +| * 0 +This allows to quickly find services associated with a servicetype. +It does NOT reflect the user profile, which is stored in profilerc and +implemented in KServiceTypeProfile. + +Mimetype patterns +| Fast patterns (fixed size) +| * Extension (padded to 4 chars), mimetype offset +| * Extension (padded to 4 chars), mimetype offset +| * Extension (padded to 4 chars), mimetype offset +| Other patterns (variable size) +| * Pattern (ex : *.*gf), mimetype offset +| * Pattern (ex : Makefile*), mimetype offset +| * "" + +The first one is designed for a binary search, since entries have a fixed size +and are sorted by extension. +The second one (10% of the mimetypes usually) is for a linear search. diff --git a/local/recipes/kde/kf6-kded6/source/docs/HOWTO b/local/recipes/kde/kf6-kded6/source/docs/HOWTO new file mode 100644 index 00000000..53e8c311 --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/docs/HOWTO @@ -0,0 +1,45 @@ +HOWTO Make KDED Modules +======================= + +A KDED module is loaded when a call is made to it. +KDED modules should not be added if it is avoidable because (especially +when new) they endanger the stability of KDED and its other modules which +provide important services. There are other ways to achieve what a KDED +module can do in many cases. +KDED modules should be useful during the whole session and manage +information that, for some reason, cannot be kept in any other process. + +Here are examples of KDED modules: + frameworks/baloo/src/kioslaves/kded/baloosearchmodule.cpp Baloo search module + kde/workspace/khotkeys/app/kded.cpp KHotKeys + +A KDED module should install a .desktop file with + ServicesTypes=KDEDModule + +A KDED module will be loaded on KDE startup if it has a line + X-KDE-Kded-autoload=true + +Note that this flag doesn't cause the module to be loaded if the KDE desktop +is not running (i.e. when running a KDE application in another environment). + +[The following paragraph was copied from kdebase/workspace/ksmserver/README] +The exact way autoloading works is controlled by X-KDE-Kded-phase=, +which may be 0, 1 or 2 (the default). Kded phase 0 means the module is +always loaded by kded, even outside of KDE session. It should used only +by kded modules which must be always running. Kded phase 1 modules are +loaded right after kded startup, but only during KDE startup, i.e. it is +for modules that are always needed by the KDE session. Phase 2 modules +will be loaded later. + +Normally KDED modules are loaded whenever they are accessed, so you don't +need autoloading enabled. On demand loading can be disabled by putting +the following line in the .desktop file: + X-KDE-Kded-load-on-demand=false + +Further it should contain: + X-KDE-Library=foo + +Which means that kded_foo.so is the name of the library that contains +the module. Note that the name of the library always starts with kded_. + +The .desktop file should be installed to ${SERVICES_INSTALL_DIR}/kded diff --git a/local/recipes/kde/kf6-kded6/source/docs/kded6/CMakeLists.txt b/local/recipes/kde/kf6-kded6/source/docs/kded6/CMakeLists.txt new file mode 100644 index 00000000..28e371cd --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/docs/kded6/CMakeLists.txt @@ -0,0 +1 @@ +kdoctools_create_manpage(man-kded6.8.docbook 8 INSTALL_DESTINATION ${KDE_INSTALL_MANDIR}) diff --git a/local/recipes/kde/kf6-kded6/source/docs/kded6/man-kded6.8.docbook b/local/recipes/kde/kf6-kded6/source/docs/kded6/man-kded6.8.docbook new file mode 100644 index 00000000..9fe3db1e --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/docs/kded6/man-kded6.8.docbook @@ -0,0 +1,138 @@ + + +]> + + + + +kded6 User's Manual + +David +Faure +Maintainer + +
faure@kde.org
+
+
+ + +Waldo +Bastian +Original author + +
bastian@kde.org
+
+
+ +2023-06-22 +Frameworks 6 +KDE Frameworks + +
+ + +kded6 +8 + + + +kded6 +&kde; daemon - triggers Sycoca database updates when needed. + + + +Synopsis + + +kded6 +--check + + + + +Description + +kded6 consolidates several small services in one process. These are mostly &DBus; services provided by KDED modules, but it also manages sycoca (a binary cache of servicetypes, &MIME; types and services used by KService) and KConfig update scripts as needed. + +For sycoca, it monitors the directories containing .desktop files. When a file is added/removed, it waits 5 seconds (in case of a series of updates), and then launches kbuildsycoca6 to update the sycoca. + +For KConfig, it checks newly-installed update files, &ie; the *.upd files used to update configuration files of users when the configuration file formats changes, and runs the KConfig update utility to perform the updates. + +Those tasks are also run when kded6 is started to ensure that the user configuration is up to date. + +You do not normally need to run kded6 directly; &plasma; desktop sessions run it automatically, and it is started on demand when an application attempts to use a &DBus; interface provided by it or one of its modules. + + + + + + +Options + + + + + +Check the sycoca database, updating it if necessary, and exit. + + + + + + + + + +Configuration + +kded6 can be configured with the kded6rc ini-style configuration file. On &UNIX; systems, this can be found at $XDG_CONFIG_HOME/kded6rc; if $XDG_CONFIG_HOME is not set, this defaults to ~/.config/kded6rc. + +Configuration file entries are read on-demand, so changes can be made while kded6 is running. However, all the current configuration options only really affect the startup behaviour of kded6. + +The section has the following options: + + + +Whether to update sycoca at startup (default: true). + + + + +Whether to perform outstanding KConfig updates at startup (default: true). + + + + +Whether to check file timestamps when performing the initial sycoca update (default: true). See the documentation for kbuildsycoca6 for more details. + + + + +Whether to delay the initial sycoca update until about a minute after starting (default: false). + + + + + +Each module also has a section in kded6rc, where name is the name of the module's desktop file without the .desktop extension. This contains an option that specifies whether the module should be automatically loaded when kded6 is started (default: false). Note that this setting can also be changed via kded6's &DBus; interface. + + + + + +See Also + +kbuildsycoca68, +kdeinit68 + + + + + + +Bugs +Please use &kde;'s bugtracker to report bugs. + + +
diff --git a/local/recipes/kde/kf6-kded6/source/metainfo.yaml b/local/recipes/kde/kf6-kded6/source/metainfo.yaml new file mode 100644 index 00000000..e09d872a --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/metainfo.yaml @@ -0,0 +1,15 @@ +maintainer: +description: Extensible daemon for providing system level services +tier: 3 +type: solution +platforms: + - name: Linux + - name: FreeBSD +portingAid: false +deprecated: false +release: true +cmakename: KDED + +public_lib: true +group: Frameworks +subgroup: Tier 3 diff --git a/local/recipes/kde/kf6-kded6/source/org.kde.kded6.desktop b/local/recipes/kde/kf6-kded6/source/org.kde.kded6.desktop new file mode 100644 index 00000000..0ca5eb83 --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/org.kde.kded6.desktop @@ -0,0 +1,56 @@ +[Desktop Entry] +#This .desktop file is never shown in a menu, hence no Exec +#it's here mostly so wayland can get an icon on popups +Name=KDED +Name[ar]=العمومية +Name[ast]=KDED +Name[az]=KDED +Name[be]=KDED +Name[bg]=KDED +Name[ca]=KDED +Name[ca@valencia]=KDED +Name[cs]=KDED +Name[da]=KDED +Name[de]=KDED +Name[el]=KDED +Name[en_GB]=KDED +Name[eo]=KDED +Name[es]=KDED +Name[et]=KDED +Name[eu]=KDED +Name[fi]=KDED +Name[fr]=KDED +Name[gl]=KDED +Name[he]=KDED +Name[hi]=केडीईडी +Name[hu]=KDED +Name[ia]=KDED +Name[is]=KDED +Name[it]=KDED +Name[ka]=KDED +Name[ko]=KDED +Name[lt]=KDED +Name[lv]=KDED +Name[nl]=KDED +Name[nn]=KDED +Name[pa]=KDED +Name[pl]=KDED +Name[pt]=KDED +Name[pt_BR]=KDED +Name[ro]=KDED +Name[ru]=KDED +Name[sa]=KDED +Name[sk]=KDED +Name[sl]=KDED +Name[sq]=KDED +Name[sv]=KDED +Name[ta]=KDED +Name[tr]=KDED +Name[uk]=KDED +Name[vi]=KDED +Name[x-test]=xxKDEDxx +Name[zh_CN]=KDED +Name[zh_TW]=KDED +Type=Service +Icon=kde-frameworks +NoDisplay=true diff --git a/local/recipes/kde/kf6-kded6/source/po/ca/docs/kded6/man-kded6.8.docbook b/local/recipes/kde/kf6-kded6/source/po/ca/docs/kded6/man-kded6.8.docbook new file mode 100644 index 00000000..46452119 --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/po/ca/docs/kded6/man-kded6.8.docbook @@ -0,0 +1,271 @@ + + +]> + + + + +Manual d'usuari del kded6 +David Faure Mantenidor + +
faure@kde.org
+
+
+ +Waldo Bastian Autor original + +
bastian@kde.org
+
+
+ +22 de juny de 2023 +Frameworks 6 +Frameworks del KDE + +
+ + +kded6 +8 + + + +kded6 +Dimoni del &kde;: provoca l'actualització de la base de dades Sycoca quan cal. + + + +Sinopsi + +kded6 --check + + + +Descripció + +El kded6 consolida una sèrie de serveis petits en un sol procés. Es tracta principalment de serveis de &DBus; proporcionats pels mòduls del KDED, però també gestiona «sycoca» (un cau binari dels tipus de servei, els tipus &MIME; i els serveis utilitzats pel KService) i els scripts d'actualització de KConfig, segons sigui necessari. + +Per a «sycoca», efectuarà un seguiment dels directoris que contenen fitxers .desktop. Quan s'afegeix o elimina un fitxer, espera 5 segons (en el cas d'una sèrie d'actualitzacions) i, a continuació, llança el kbuildsycoca6 per a actualitzar el «sycoca». + +Per a KConfig, comprova els fitxers d'actualització instal·lats recentment, &pex;, els fitxers *.upd utilitzats per a actualitzar els fitxers de configuració quan es canvia el format d'aquests, i executa la utilitat d'actualització KConfig per a realitzar les actualitzacions. + +Aquestes tasques també s'executen quan s'inicia el kded6 per a assegurar que la configuració d'usuari està actualitzada. + +Normalment no necessitareu executar el kded6 directament. Les sessions d'escriptori &plasma; ho fan automàticament, i s'inicia sota demanda quan una aplicació intenta utilitzar una interfície de &DBus; que el proveeix o un dels seus mòduls. + + + + + + +Opcions + + + + + +Comprova la base de dades de «sycoca», actualitzant-la si cal, i surt. + + + + + + + + +Configurar + +El kded6 es pot configurar amb el fitxer de configuració a l'estil ini kded6rc. Sobre els sistemes &UNIX;, el trobareu a $XDG_CONFIG_HOME/kded6rc. Si no s'ha establert $XDG_CONFIG_HOME, de manera predeterminada estarà a ~/.config/kded6rc. + +Les entrades al fitxer de configuració es llegeixen sota demanda, de manera que es poden fer canvis mentre s'està executant el kded6. No obstant això, totes les opcions de configuració actuals, en realitat només afectaran el comportament durant l'arrencada del kded6. + +La secció disposa de les següents opcions: + + +Per a actualitzar «sycoca» durant l'arrencada (predeterminat: true). + + + + +Per a realitzar les actualitzacions pendents del KConfig durant l'arrencada (predeterminat: true). + + + + +Per a comprovar les marques de temps dels fitxers en realitzar l'actualització inicial de «sycoca» (predeterminat: true). Per a més detalls, vegeu la documentació per a kbuildsycoca6. + + + + +Per a retardar l'actualització inicial de «sycoca» prop d'un minut després de començar (predeterminat: false). + + + + + +Cada mòdul també compta amb una secció al kded6rc, on el nom és el nom del fitxer d'escriptori del mòdul sense l'extensió .desktop. Aquest conté una opció que especifica si el mòdul s'haurà de carregar automàticament quan s'inicia el kded6 (predeterminat: false). Cal tenir en compte que aquest valor també es pot canviar a través de la interfície de &DBus; del kded6. + + + + + +Vegeu també +kbuildsycoca68, kdeinit68 + + + + + +Errors +Si us plau, empreu el Seguidor d'errors del &kde; (escriviu-hi en anglès) per a informar dels errors. + + +
diff --git a/local/recipes/kde/kf6-kded6/source/po/es/docs/kded6/man-kded6.8.docbook b/local/recipes/kde/kf6-kded6/source/po/es/docs/kded6/man-kded6.8.docbook new file mode 100644 index 00000000..527538f2 --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/po/es/docs/kded6/man-kded6.8.docbook @@ -0,0 +1,269 @@ + + +]> + + + + +Manual del usuario de kded6 +David Faure Encargado del mantenimiento + +
faure@kde.org
+
+
+ +Waldo Bastian Autor original + +
bastian@kde.org
+
+
+ +2023-06-22 +Frameworks 6 +KDE Frameworks + +
+ + +kded6 +8 + + + +kded6 +Demonio de &kde; - desencadena actualizaciones de la base de datos Sycoca cuando es necesario. + + + +Resumen + +kded6 --check + + + +Descripción + +kded6 consolida varios servicios pequeños en un proceso. La mayoría son servicios de &DBus; proporcionados por módulos de KDED, pero también gestiona sycoca (una caché binaria de tipos de servicios, tipos &MIME; y servicios que usa KService) y los scripts de actualización de KConfig, según se necesite. + +Para sycoca, realiza un seguimiento de los directorios que contienen archivos .desktop. Cuando se añade o elimina un archivo, espera 5 segundos (en el caso de series de actualizaciones) y, a continuación, lanza kbuildsycoca6 para actualizar sycoca. + +Para KConfig, comprueba archivos de actualización instalados recientemente, (como los archivos *.upd que se usan para actualizar los archivos de configuración de los usuarios cuando cambia el formato de los archivos de configuración) y ejecuta la utilidad de actualización de KConfig para realizar las actualizaciones. + +Esas tareas también se realizan siempre que se inicie kded6 para asegurar que la configuración del usuario está actualizada. + +Normalmente, no se necesita ejecutar kded6 directamente, ya que las sesiones de escritorio &plasma; lo ejecutan automáticamente y se inicia bajo demanda cuando una aplicación intenta usar una interfaz &DBus; proporcionada por él o por uno de sus módulos. + + + + + + +Opciones + + + + + +Comprobar la base de datos de sycoca, actualizarla si es necesario y salir. + + + + + + + + +Configuración + +kded6 se puede configurar con el archivo de configuración de kded6rc ini-style. En los sistemas &UNIX;, se puede encontrar en $XDG_CONFIG_HOME/kded6rc; si no se le ha dado valor a $XDG_CONFIG_HOME su valor predeterminado es~/.config/kded6rc. + +Las entradas del archivo de configuración se leen a demanda, de manera que los cambios se pueden realizar mientras se está ejecutando kded6. Sin embargo, todas las opciones de configuración actuales solo afectan al comportamiento en el inicio de kded6. + +La sección tiene las siguientes opciones: + + +Indica si se debe actualizar sycoca en el inicio (de manera predeterminada: true). + + + + +Indica si se deben realizar las actualizaciones pendientes de KConfig en el inicio (de manera predeterminada: true). + + + + +Indica si se debe comprobar las marcas de tiempo del archivo cuando se realiza la actualización inicial de sycoca (de manera predeterminada: true). Consulte la documentación de kbuildsycoca6 para obtener más información. + + + + +Indica si se debe retrasar la actualización inicial de sycoca hasta un minuto después del inicio (de manera predeterminada: false). + + + + + +Cada módulo tiene una sección en kded6rc, donde name es el nombre del archivo de escritorio sin la extensión .desktop. Contiene una opción que especifica si el módulo se debe cargar automáticamente cuando se inicia kded6 (de manera predeterminada: false). Tenga en cuenta que esta preferencia se puede también se puede cambiar mediante la interfaz &DBus; de kded6. + + + + + +Vea también +kbuildsycoca68, kdeinit68 + + + + + +Fallos +Use la herramienta de seguimiento de fallos de &kde; para informar de fallos. + + +
diff --git a/local/recipes/kde/kf6-kded6/source/po/fr/docs/kded6/man-kded6.8.docbook b/local/recipes/kde/kf6-kded6/source/po/fr/docs/kded6/man-kded6.8.docbook new file mode 100644 index 00000000..32196421 --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/po/fr/docs/kded6/man-kded6.8.docbook @@ -0,0 +1,269 @@ + + +]> + + + + +Manuel Utilisateur de « kded6 » +David Faure Mainteneur + +
faure@kde.org
+
+
+ +Waldo Bastian Auteur originel + +
bastian@kde.org
+
+
+ +22-06-2023 +Environnements de développement 6.0 +Environnements de développement de KDE + +
+ + +kded6 +8 + + + +kded6 +Démon &kde; - déclenche les mises à jour de la base de données « sycoca » lorsque nécessaire. + + + +Synopsis + +kded6 --check + + + +Description + +La commande kded6 regroupe de nombreux services élémentaires en un seul processus. Il s'agit essentiellement de services « &DBus; » fournis par les modules de « KDED ». Mais, il gère aussi « sycoca » (un cache binaire de types de services &MIME; et de services utilisés par « KService ») et les scripts de mise à jour de « KConfig » lorsque nécessaire. + +Pour « sycoca », il surveille les dossiers contenant des fichiers « .desktop ». Lorsqu'un fichier est ajouté / supprimé, il attend 5 secondes (en cas de mise à jour en série), puis lance kbuildsycoca6 pour mettre à jour « sycoca ». + +Pour « KConfig », il vérifie les fichiers de mise à jour nouvellement installés, &cad; les fichiers « *.upd » utilisés pour mettre à jour les fichiers de configuration des utilisateurs lorsque les formats de fichiers de configuration sont modifiés. Il exécute l'utilitaire de mise à jour de « KConfig » pour réaliser les mises à jour. + +Ces tâches sont aussi exécutées lorsque kded6est démarré afin de s'assurer que la configuration utilisateur est à jour. + +Vous ne devriez pas avoir besoin normalement de lancer directement kded6. Les sessions de bureau de &plasma; le démarrent automatiquement. Il est démarré à la demande lorsqu'une application tente d'utiliser son interface &DBus; ou via un de ses modules. + + + + + + +Options + + + + + +Vérifier la base de données « sycoca », la mettre à jour si nécessaire et fermer. + + + + + + + + +Configuration + +La commande kded6 peut être configurée avec le fichier de configuration kded6rc ini-style. Sur les systèmes &UNIX; ceci peut être trouvé dans $XDG_CONFIG_HOME/kded6rc; si la variable $XDG_CONFIG_HOME n'est pas définie, la valeur par défaut est ~/.config/kded6rc. + +Les entrées dans le fichier de configuration sont lues à la demande. Ainsi, les modifications peuvent être effectuées lors de l'exécution de la commande kded6. Cependant, toutes les options de configuration courantes n'affectent réellement que le comportement au démarrage de kded5. + +La section possède les options suivantes : + + +Mise à jour ou non de « sycoca » au démarrage (Par défaut : True). + + + + +Réaliser ou non une mise à jour en suspens de « KConfig » au démarrage (Par défaut : True). + + + + +Vérifier ou non les marqueurs d'horodatage lors de la réalisation de la mise à jour de « sycoca » (Par défaut : True). Veuillez consulter la documentation de kbuildsycoca6 pour plus de détails. + + + + +Retarder ou non la mise à jour initiale de « sycoca » jusqu'à environ une minute après le démarrage (Par défaut : False). + + + + + +Chaque module possède aussi une section dans kded6rc, où le paramètre nom est le nom du fichier de module de bureau sans l'extension .desktop. Ceci contient une option spécifiant si le module doit être automatiquement chargé quand la commande kded6 est démarrée (Par défaut : False). Veuillez noter que ce paramètre peut aussi être modifié par l'interface &DBus; par la commande kded6. + + + + + +Voir Aussi +kbuildsycoca68, kdeinit68 + + + + + +Bogues +Veuillez utiliser le traqueur de bogues pour les signaler. + + +
diff --git a/local/recipes/kde/kf6-kded6/source/po/it/docs/kded6/man-kded6.8.docbook b/local/recipes/kde/kf6-kded6/source/po/it/docs/kded6/man-kded6.8.docbook new file mode 100644 index 00000000..6d1afcb3 --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/po/it/docs/kded6/man-kded6.8.docbook @@ -0,0 +1,273 @@ + + +]> + + + + +Manuale dell'utente di kded6 +David Faure Responsabile + +
faure@kde.org
+
+
+ +Waldo Bastian Autore originale + +
bastian@kde.org
+
+
+ +2023-06-22 +Frameworks 6 +KDE Frameworks + +
+ + +kded6 +8 + + + +kded6 +Demone di &kde; - aggiorna la banca dati di Sycoca quando necessario. + + + +Sintassi + +kded6 --check + + + +Descrizione + +kded6 mette insieme diversi piccoli servizi in un processo. Questi sono per lo più servizi &DBus; forniti dai moduli KDED, ma gestisce anche sycoca (una cache binaria di tipi di servizi, di tipi &MIME; e di servizi usati da KService) e gli script di aggiornamento di KConfig secondo necessità. + +Per sycoca, sorveglia le cartelle contenenti file .desktop. Quando un file viene aggiunto o rimosso, attende cinque secondi (per il caso di una serie di aggiornamenti), e quindi avvia kbuildsycoca6 per aggiornare Sycoca. + +Per KConfig, controlla i file di aggiornamento installati recentemente, &ie; i file *.upd usati per aggiornare i file di configurazione degli utenti quando cambia il formato dei file di configurazione, ed esegue il programma di aggiornamento di KConfig per effettuare gli aggiornamenti. + +Questi compiti sono effettuati anche all'avvio di kded6 per assicurarsi che la configurazione dell'utente sia aggiornata. + +Normalmente non devi eseguire kded6 direttamente; le sessioni desktop di &plasma; lo eseguono da sé, e viene avviato a richiesta quando un'applicazione cerca di usare un'interfaccia &DBus; fornita da kded5 o da uno dei suoi moduli. + + + + + + +Opzioni + + + + + +Controlla la banca dati di sycoca, aggiornandola se necessario, ed esce. + + + + + + + + +Configurazione + +kded6 può essere configurato con il file di configurazione in stile ini kded6rc. Sui sistemi &UNIX;, questo si può trovare sotto $XDG_CONFIG_HOME/kded6rc; se $XDG_CONFIG_HOME non è impostata, il suo valore predefinito è ~/.config/kded6rc. + +Le voci del file di configurazione sono lette a ogni richiesta, quindi si possono apportare modifiche mentre kded6 è in esecuzione. Però, tutte le attuali opzioni di configurazione hanno effetto solo sul comportamento di avvio di kded6. + +La sezione ha le seguenti opzioni: + + +Se aggiornare sycoca all'avvio (predefinito: true). + + + + +Se effettuare gli aggiornamenti di KConfig pendenti all'avvio (predefinito: true). + + + + +Se controllare le date e le ore dei file nell'effettuare l'aggiornamento iniziale di sycoca (predefinito: true). Vedi la documentazione di kbuildsycoca6 per maggiori dettagli. + + + + +Se ritardare l'aggiornamento iniziale di sycoca a circa un minuto dopo l'avvio (predefinito: false). + + + + + +Ogni modulo ha inoltre una sezione in kded6rc, dove nome è il nome del file desktop del modulo senza l'estensione .desktop. Questo contiene un'opzione che specifica se il modulo va caricato automaticamente all'avvio di kded6 (predefinito: false). Nota che questa impostazione può essere modificata anche con l'interfaccia &DBus; di kded6. + + + + + +Vedi anche +kbuildsycoca68, kdeinit68 + + + + + +Errori +Usa il sito di gestione dei bug di &kde; per segnalarli. + + +
diff --git a/local/recipes/kde/kf6-kded6/source/po/nl/docs/kded6/man-kded6.8.docbook b/local/recipes/kde/kf6-kded6/source/po/nl/docs/kded6/man-kded6.8.docbook new file mode 100644 index 00000000..fcb7c7e1 --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/po/nl/docs/kded6/man-kded6.8.docbook @@ -0,0 +1,269 @@ + + +]> + + + + +Gebruikershandleiding van kded6 +David Faure Onderhouder + +
faure@kde.org
+
+
+ +Waldo Bastian Oorspronkelijke auteur + +
bastian@kde.org
+
+
+ +2023-06-22 +Frameworks 6 +KDE Frameworks + +
+ + +kded6 +8 + + + +kded6 +&kde;-daemon - start Sycoca-database-updates wanneer nodig. + + + +Samenvatting + +kded6 --check + + + +Beschrijving + +kded6 consolideert verschillende kleine services in één proces. Dit zijn meestal &DBus;-services geleverd door KDED-modules, maar het bestuurt ook sycoca (een binaire cache van service-typen, &MIME;-typen en services gebruikt door KService) en KConfig-scripts voor bijwerken zoals nodig is. + +Voor sycoca monitort het de mappen die .desktop-bestanden bevatten. Wanneer een bestand wordt toegevoegd/verwijderd, dan wacht het 5 seconden (voor het geval van een serie wijzigingen) en start dan kbuildsycoca6 om de sycoca bij te werken. + +Voor KConfig controleert het nieuw geïnstalleerd bestanden voor bijwerken, &ie; de *.upd bestanden die worden gebruikt om configuratiebestanden van gebruikers bij te werken wanneer de bestandsformaten voor de configuratie zich wijzigen en voert het hulpprogramma voor bijwerken van KConfig om het bijwerken uit te voeren. + +Deze taken worden ook altijd uitgevoerd bij het starten van kded6 om er zeker van te zijn dat de configuratie van de gebruiker up-to-date is. + +Normaal is het niet nodig om kded6 direct uit te voeren; bureaubladsessies van &plasma; vieren het automatisch uit en het wordt op aanvraag gestart wanneer een toepassing een &DBus;-interface probeert te gebruiken dat er door geleverd wordt of door een van zijn modulen. + + + + + + +Opties + + + + + +Controleer de database van sycoca, werk het zo nodig bij en eindig. + + + + + + + + +Configuratie + +kded6 kan geconfigureerd worden met het configuratiebestand kded6rc in ini-stijl. Onder &UNIX;-systemen, is het te vinden in $XDG_CONFIG_HOME/kded6rc; als $XDG_CONFIG_HOME niet is ingesteld, dan krijgt dit de standaard waarde ~/.config/kded6rc. + +Items in een configuratiebestand worden op verzoek gelezen, er kunnen dus wijzigingen aangebracht worden terwijl kded6 actief is. Alle huidige configuratie-opties hebben echter alleen effect bij het opstarten van kded6. + +De sectie heeft de volgende opties: + + +Of sycoca bij opstarten moet worden bijgewerkt (standaard: true). + + + + +Of wachtende elementen voor bijwerken van KConfig bij opstarten moeten uitgevoerd (standaard: true). + + + + +Of datum-tijd van bestanden gecontroleerd moeten worden bij het uitvoeren van het initiële bijwerken van sycoca (standaard: true). Zie de documentatie voor kbuildsycoca6 voor meer details. + + + + +Of het initiële bijwerken van sycoca moet worden uitgesteld tot ongeveer een minuut na opstarten (standaard: false). + + + + + +Elke module heeft ook een sectie in kded6rc, waar naam de naam is van het desktop-bestand van de module zonder de extensie .desktop. Deze bevat een optie die specificeert of de module automatisch geladen moet worden wanneer kded6 wordt gestart (standaard: false). Merk op dat deze instelling gewijzigd kan worden via het &DBus;-interface van kded6. + + + + + +Zie ook +kbuildsycoca68, kdeinit68 + + + + + +Fouten/bugs +Gebruik De volger van bugs van &kde; om ze te rapporteren. + + +
diff --git a/local/recipes/kde/kf6-kded6/source/po/sl/docs/kded6/man-kded6.8.docbook b/local/recipes/kde/kf6-kded6/source/po/sl/docs/kded6/man-kded6.8.docbook new file mode 100644 index 00000000..43bd46c2 --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/po/sl/docs/kded6/man-kded6.8.docbook @@ -0,0 +1,269 @@ + + +]> + + + + +kded6 Uporabniški priročnik +David Faure Vzdrževalec + +
faure@kde.org
+
+
+ +Waldo Bastian Izvirni avtor + +
bastian@kde.org
+
+
+ +22.06.2023 +Frameworks 6 +KDE Frameworks + +
+ + +kded6 +8 + + + +kded6 +&kde; daemon - po potrebi sproži posodobitve podatkovne zbirke Sycoca. + + + +Sinopsis + +kded6 --check + + + +Opis + +kded6 združuje več majhnih storitev v enem procesu.To so večinoma storitve &DBus;, ki jih zagotavljajo moduli KDED, ampak tudiupravlja sycoca (binarni predpomnilnik vrst storitev, vrst &MIME; in storitev, ki jih uporablja KService) in KConfig po potrebi posodobi skripte. + +Za sycoca nadzoruje imenike, ki vsebujejo datoteke .desktop. Ko je datoteka dodana/odstranjena, počaka 5 sekund (v primeru niza posodobitev),in nato zažene kbuildsycoca6 za posodobitev sycoca. + +Pri programu KConfig preveri novo nameščene datoteke posodobitev, &ie; datoteke *.upd, ki se uporabljajo za posodabljanje konfiguracijskih datotek uporabnikov, ko se spremenijo formati konfiguracijskih datotek, in za izvajanje posodobitev zažene pripomoček za posodabljanje programa KConfig. + +Ta opravila se izvajajo tudi, ko se zažene kded6, da se zagotovida je uporabniška konfiguracija posodobljena. + +Običajno vam kded6 ni treba zaganjati neposredno; &plasma;namizne seje ga zaženejo samodejno in se zažene na zahtevo, ko aplikacija poskuša uporabiti &DBus; vmesnik, ki ga ponuja sam ali eden od njegovih modulov. + + + + + + +Možnosti + + + + + +Preverite zbirko podatkov sycoca, jo po potrebi posodobite in zaključite. + + + + + + + + +Konfiguracija + +kded6 je mogoče konfigurirati z kded6rc konfiguracijska datoteka v slogu ini. Na sistemih &UNIX; je to mogoče najtina $XDG_CONFIG_HOME/kded6rc; če$XDG_CONFIG_HOME ni nastavljeno, to je privzeto~/.config/kded6rc. + +Vnosi v konfiguracijski datoteki se berejo na zahtevo, tako da je mogoče spreminjati med tem ko se kded6 izvaja. Vendar pa vse trenutne možnosti konfiguracije resnično vplivajo le na obnašanje kded6 ob zagonu. + +V razdelku so naslednje možnosti: + + +Ali naj se ob zagonu posodobi sycoca (privzeto: resnično). + + + + +Ali naj se ob zagonu izvedejo neplačane posodobitve KConfig (privzeto: resnično). + + + + +Ali se pri izvajanju začetne posodobitve sycoca preverijo časovni žigi datotek(privzeto: true). Oglejte si dokumentacijo zakbuildsycoca6 za več podrobnosti. + + + + +Ali naj se začetna posodobitev programa sycoca odloži na približno minuto po začetku (privzeto: false). + + + + + +Vsak modul ima tudi v kded6rc, kjer je name ime datoteke namizja modula brez podaljška .desktop. To vsebuje možnost, ki določa, ali naj se modul samodejno naloži, ko je kded6 zagnan (privzeto: false). Upoštevajte, da lahko to nastavitev spremenite tudi prek kded6 vmesnika &DBus;. + + + + + +Poglejte tudi +kbuildsycoca68, kdeinit68 + + + + + +Napake +Prosim uporabite &kde;jev sledilnik napak za prijavo napak. + + +
diff --git a/local/recipes/kde/kf6-kded6/source/po/tr/docs/kded6/man-kded6.8.docbook b/local/recipes/kde/kf6-kded6/source/po/tr/docs/kded6/man-kded6.8.docbook new file mode 100644 index 00000000..f98f7370 --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/po/tr/docs/kded6/man-kded6.8.docbook @@ -0,0 +1,269 @@ + + +]> + + + + +kded6 Kullanıcı Kılavuzu +David Faure Bakımcı + +
faure@kde.org
+
+
+ +Waldo Bastian Özgün yazar + +
bastian@kde.org
+
+
+ +2023-06-22 +Frameworks 6 +KDE Frameworks + +
+ + +kded6 +8 + + + +kded6 +&kde; ardalan süreci, gerektiğinde Sycoca veritabanını günceller. + + + +Özet + +kded6 --check + + + +Açıklama + +kded6, tek süreçte birden çok küçük hizmeti birleştirir. Bunlar çoğunlukla KDED modülleri tarafından sağlanan &DBus; hizmetleridir; ancak gerekirse sycoca (hizmet türleri, &MIME; türleri ve KService tarafından kullanılan hizmetlerin ikili önbelleği) ve KConfig güncelleme betiklerini de yönetir. + +Sycoca için, .desktop dosyalarını içeren dizinleri izler. Bir dosya eklendiğinde veya kaldırıldığında 5 saniye kadar bekler (bir güncelleme serisi durumunda), ardından sycoca’yı güncellemek için kbuildsycoca6 komutunu başlatır. + +KConfig için yeni kurulan güncelleme dosyalarını denetler, örn. yapılandırma dosyası biçimleri değiştiğinde kullanıcıların yapılandırma dosyalarını güncellemek için kullanılan *.upd dosyaları ve güncellemeleri gerçekleştirmek için KConfig güncelleme izlencesini çalıştırır. + +Bu görevler kded6 başladığında da kullanıcı yapılandırmasını güncel tutmak için çalıştırılır. + +Normalde kded6 komutunu doğrudan çalıştırmanız gerekmez; &plasma; masaüstü oturumu kendiliğinden çalıştırır ve bir uygulama onun tarafından sağlanan bir &DBus; arayüzünü veya modüllerinden birini çağırdığında başlatılır. + + + + + + +Seçenekler + + + + + +sycoca veritabanını denetleyin, gerekliyse güncelleyin ve çıkın. + + + + + + + + +Yapılandırma + +kded6 komutu, kded6rc ini-biçemli yapılandırma dosyasıyla yapılandırılabilir. &UNIX; sistemlerde, bu $XDG_CONFIG_HOME/kded6rc konumunda bulunabilir; $XDG_CONFIG_HOME ayarlanmamışsa öntanımlı değer ~/.config/kded6rc olur. + +Yapılandırma dosyası girdileri istendiğinde okunur, böylece değişiklikler kded6 çalışırken yapılabilir. Ancak tüm geçerli yapılandırma seçenekleri gerçekten yalnızca kded6 davranışını etkiler. + + bölümü şu seçenekleri içerir: + + +Sycoca’nın açılışta güncellenip güncellenmeyeceği (öntanımlı: true). + + + + +Kalmış KConfig güncellemelerinin açılışta yapılıp yapılmayacağı (öntanımlı: true). + + + + +İlk sycoca güncellemesini yaparken dosya zaman damgalarının denetlenip denetlenmeyeceği (öntanımlı: true). Ayrıntılar için kbuildsycoca6 belgelendirmesine göz atın. + + + + +İlk sycoca güncellemesinin başlangıçtan bir dakika sonraya kadar geciktirilip geciktirilmemesi (öntanımlı: false). + + + + + +Her modül ayrıca kded6rc içinde bir kısmına sahiptir, burada ad, modülün masaüstü dosyasının .desktop uzantısı olmadan adıdır. Bu modülün kded6 başlatıldığında kendiliğinden yüklenip yüklenmemesi gerektiğini belirten bir seçeneği içerir (öntanımlı: false). Bu ayarın kded6 &DBus; arayüzüyle de değiştirilebileceğini söyleyelim. + + + + + +Ayrıca Bakınız +kbuildsycoca68, kdeinit68 + + + + + +Hatalar +Hataları bildirmek için lütfen &kde;'nin hata izleyicisini kullanın. + + +
diff --git a/local/recipes/kde/kf6-kded6/source/po/uk/docs/kded6/man-kded6.8.docbook b/local/recipes/kde/kf6-kded6/source/po/uk/docs/kded6/man-kded6.8.docbook new file mode 100644 index 00000000..36948269 --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/po/uk/docs/kded6/man-kded6.8.docbook @@ -0,0 +1,269 @@ + + +]> + + + + +Інструкція користувача kded6 +David Faure Супровідник + +
faure@kde.org
+
+
+ +Waldo Bastian Автор початкової версії + +
bastian@kde.org
+
+
+ +22 червня 2023 року +Frameworks 6 +KDE Frameworks + +
+ + +kded6 +8 + + + +kded6 +Фонова служба &kde; — за потреби запускає оновлення бази даних Sycoca. + + + +Короткий опис + +kded6 --check + + + +Опис + +kded6 поєднує у одному процесі декілька невеликих служб. Цими службами є здебільшого служби &DBus;, роботу яких забезпечують модулі KDED. Окрім того, програма керує sycoca (бінарним кешем даних щодо типів файлів, типів &MIME; та служб, які використовуються KService) та скриптами оновлення KConfig, якщо це потрібно. + +Для кешу sycoca ця програма слідкує за каталогами, у яких містяться файли .desktop. Після того, як до такого каталогу буде додано або вилучено файл, програма зачекає 6 секунд (щоб відстежити послідовність оновлень), а потім запустить команду kbuildsycoca6 для оновлення бази даних sycoca. + +Для KConfig програма шукає нововстановлені файли оновлень, тобто файли *upd, які використовуються для оновлення файлів налаштувань користувачів у разі зміни формату файлів налаштувань. Для виконання оновлень програма запускає засіб оновлення KConfig. + +Ці завдання також виконуються після запуску kded6 для забезпечення актуальності налаштувань для користувача. + +Зазвичай, потреби у запуску kded6 вручну немає. Сеанси стільничного середовища Плазми запускають програму автоматично. Також програма запускається за потреби, якщо якась інша програма намагається скористатися інтерфейсом D-Bus, що надається kded5 або якимсь із модулів цієї програми. + + + + + + +Параметри + + + + + +Перевірити актуальність бази даних sycoca, оновити її, якщо це потрібно, і завершити роботу. + + + + + + + + +Налаштування + +kded6 можна налаштувати за допомогою файла налаштувань kded6rc у форматі ini. У системах Unix теку цей файл зберігається за адресою $XDG_CONFIG_HOME/kded6rc. Якщо змінну середовища $XDG_CONFIG_HOME не визначено, типовим місцем для файла є ~/.config/kded6rc. + +Записи файла налаштувань буде прочитано за потреби, тому можна вносити до файла налаштувань зміни, не зупиняючи роботи kded6. Втім, усі поточні значення параметрів налаштування впливають лише на поведінку kded6 під час запуску програми. + +У розділі зберігаються значення таких параметрів: + + +Визначає, чи слід оновлювати sycoca під час запуску (типове значення: true). + + + + +Визначає, чи слід виконувати додаткові оновлення KConfig під час запуску (типове значення: true). + + + + +Визначає, чи слід виконувати перевірку часових позначок під час початкового оновлення sycoca (типове значення: true). Щоб дізнатися більше, зверніться до документації з kbuildsycoca6. + + + + +Визначає, чи слід відкладати початкове оновлення sycoca на одну хвилину після запуску (типове значення: false). + + + + + +Крім того, для кожного модуля у kded6rc передбачено власний розділ , де назва — назва файла desktop модуля без розширення .desktop. У цьому розділі міститься запис параметра , який визначає, чи слід завантажувати модуль автоматично під час запуску kded6 (типове значення: false). Зауважте, що значення цього параметра можна змінити за допомогою інтерфейсу D-Bus kded6. + + + + + +Прочитайте також +kbuildsycoca68, kdeinit68 + + + + + +Вади +Для сповіщення про вади скористайтеся адресою системою стеження за вадами &kde;. + + +
diff --git a/local/recipes/kde/kf6-kded6/source/src/CMakeLists.txt b/local/recipes/kde/kf6-kded6/source/src/CMakeLists.txt new file mode 100644 index 00000000..8010268b --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/src/CMakeLists.txt @@ -0,0 +1,50 @@ +add_executable(kded6) + +target_sources(kded6 PRIVATE + kded.cpp + kdedadaptor.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/org.kde.kded6.xml +) + +ecm_qt_declare_logging_category( + kded6 + HEADER kded_debug.h + IDENTIFIER KDED + CATEGORY_NAME kf.kded + OLD_CATEGORY_NAMES kf5.kded + DEFAULT_SEVERITY Warning + DESCRIPTION "KDED" + EXPORT KDED +) + +ecm_mark_nongui_executable(kded6) + +target_link_libraries(kded6 + Qt6::Widgets # QApplication + KF6::Service # Needed for ksycoca.h + KF6::CoreAddons # Needed for KDirWatch + KF6::DBusAddons # Needed for kdedmodule.h + KF6::Crash # Sets it as autostart + KF6::ConfigCore +) + +target_compile_definitions(kded6 PRIVATE + KCONF_UPDATE_EXE="/usr/bin/kconf_update" +) + +install(TARGETS kded6 ${KF_INSTALL_TARGETS_DEFAULT_ARGS} ) + +configure_file(plasma-kded6.service.in + ${CMAKE_CURRENT_BINARY_DIR}/plasma-kded6.service @ONLY) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/plasma-kded6.service + DESTINATION ${KDE_INSTALL_SYSTEMDUSERUNITDIR}) + +install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/org.kde.kded6.xml DESTINATION ${KDE_INSTALL_DBUSINTERFACEDIR}) + +kdbusaddons_generate_dbus_service_file(kded6 org.kde.kded6 ${KDE_INSTALL_FULL_BINDIR}) + +ecm_qt_install_logging_categories( + EXPORT KDED + FILE kded.categories + DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR} +) diff --git a/local/recipes/kde/kf6-kded6/source/src/kded.cpp b/local/recipes/kde/kf6-kded6/source/src/kded.cpp new file mode 100644 index 00000000..0bae98e4 --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/src/kded.cpp @@ -0,0 +1,677 @@ +/* + This file is part of the KDE libraries + SPDX-FileCopyrightText: 1999 David Faure + SPDX-FileCopyrightText: 2000 Waldo Bastian + + SPDX-License-Identifier: LGPL-2.0-only +*/ + +#include "kded.h" +#include "kded_debug.h" +#include "kded_version.h" +#include "kdedadaptor.h" + +#include + +#include + +#include +#include +#include +#include +#include + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +#include + +Kded *Kded::_self = nullptr; + +static bool delayedCheck; +static bool bCheckSycoca; +static bool bCheckUpdates; + +#ifdef Q_DBUS_EXPORT +extern Q_DBUS_EXPORT void qDBusAddSpyHook(void (*)(const QDBusMessage &)); +#else +extern QDBUS_EXPORT void qDBusAddSpyHook(void (*)(const QDBusMessage &)); +#endif + +static void runKonfUpdate() +{ + int ret = QProcess::execute(QStringLiteral(KCONF_UPDATE_EXE), QStringList()); + if (ret != 0) { + qCWarning(KDED) << KCONF_UPDATE_EXE << "returned" << ret; + } +} + +Kded::Kded() + : m_pDirWatch(new KDirWatch(this)) + , m_pTimer(new QTimer(this)) + , m_needDelayedCheck(false) +{ + _self = this; + + m_serviceWatcher = new QDBusServiceWatcher(this); + m_serviceWatcher->setConnection(QDBusConnection::sessionBus()); + m_serviceWatcher->setWatchMode(QDBusServiceWatcher::WatchForUnregistration); + QObject::connect(m_serviceWatcher, &QDBusServiceWatcher::serviceUnregistered, this, &Kded::slotApplicationRemoved); + + new KdedAdaptor(this); + + QDBusConnection session = QDBusConnection::sessionBus(); + session.registerObject(QStringLiteral("/kbuildsycoca"), this); + session.registerObject(QStringLiteral("/kded"), this); + + m_pTimer->setSingleShot(true); + connect(m_pTimer, &QTimer::timeout, this, static_cast(&Kded::recreate)); +} + +Kded::~Kded() +{ + _self = nullptr; + m_pTimer->stop(); + + for (auto it = m_modules.cbegin(); it != m_modules.cend(); ++it) { + delete *it; + } + m_modules.clear(); +} + +// on-demand module loading +// this function is called by the D-Bus message processing function before +// calls are delivered to objects +void Kded::messageFilter(const QDBusMessage &message) +{ + // This happens when kded goes down and some modules try to clean up. + if (!self()) { + return; + } + + QString obj = KDEDModule::moduleForMessage(message); + if (obj.isEmpty() || obj == QLatin1String("ksycoca")) { + return; + } + + if (self()->m_dontLoad.value(obj, nullptr)) { + return; + } + + self()->loadModule(obj, true); +} + +static int phaseForModule(const KPluginMetaData &module) +{ + return module.value(QStringLiteral("X-KDE-Kded-phase"), 2); +} + +QList Kded::availableModules() const +{ + QList plugins = KPluginMetaData::findPlugins(QStringLiteral("kf6/kded")); + QSet moduleIds; + for (const KPluginMetaData &md : std::as_const(plugins)) { + moduleIds.insert(md.pluginId()); + } + return plugins; +} + +static KPluginMetaData findModule(const QString &id) +{ + KPluginMetaData module(QStringLiteral("kf6/kded/") + id); + if (module.isValid()) { + return module; + } + qCWarning(KDED) << "could not find kded module with id" << id; + return KPluginMetaData(); +} + +void Kded::initModules() +{ + m_dontLoad.clear(); + + bool kde_running = !qEnvironmentVariableIsEmpty("KDE_FULL_SESSION"); + if (kde_running) { + // not the same user like the one running the session (most likely we're run via sudo or something) + const QByteArray sessionUID = qgetenv("KDE_SESSION_UID"); + if (!sessionUID.isEmpty() && uid_t(sessionUID.toInt()) != getuid()) { + kde_running = false; + } + // not the same kde version as the current desktop + const QByteArray kdeSession = qgetenv("KDE_SESSION_VERSION"); + if (kdeSession.toInt() != 6) { + kde_running = false; + } + } + + // Preload kded modules. + const QList kdedModules = availableModules(); + for (const KPluginMetaData &module : kdedModules) { + // Should the service load on startup? + const bool autoload = isModuleAutoloaded(module); + if (!platformSupportsModule(module)) { + continue; + } + + // see ksmserver's README for description of the phases + bool prevent_autoload = false; + switch (phaseForModule(module)) { + case 0: // always autoload + break; + case 1: // autoload only in KDE + if (!kde_running) { + prevent_autoload = true; + } + break; + case 2: // autoload delayed, only in KDE + default: + if (!kde_running) { + prevent_autoload = true; + } + break; + } + + // Load the module if necessary and allowed + if (autoload && !prevent_autoload) { + if (!loadModule(module, false)) { + continue; + } + } + + // Remember if the module is allowed to load on demand + bool loadOnDemand = isModuleLoadedOnDemand(module); + if (!loadOnDemand) { + noDemandLoad(module.pluginId()); + } + + // In case of reloading the configuration it is possible for a module + // to run even if it is now allowed to. Stop it then. + if (!loadOnDemand && !autoload) { + unloadModule(module.pluginId()); + } + } +} + +void Kded::noDemandLoad(const QString &obj) +{ + m_dontLoad.insert(obj, this); +} + +void Kded::setModuleAutoloading(const QString &obj, bool autoload) +{ + KSharedConfig::Ptr config = KSharedConfig::openConfig(QStringLiteral("kded5rc")); + // Ensure the service exists. + KPluginMetaData module = findModule(obj); + if (!module.isValid()) { + return; + } + KConfigGroup cg(config, QStringLiteral("Module-").append(module.pluginId())); + cg.writeEntry("autoload", autoload); + cg.sync(); +} + +bool Kded::isModuleAutoloaded(const QString &obj) const +{ + return isModuleAutoloaded(findModule(obj)); +} + +bool Kded::isModuleAutoloaded(const KPluginMetaData &module) const +{ + if (!module.isValid()) { + return false; + } + KSharedConfig::Ptr config = KSharedConfig::openConfig(QStringLiteral("kded5rc")); + bool autoload = module.value(QStringLiteral("X-KDE-Kded-autoload"), false); + KConfigGroup cg(config, QStringLiteral("Module-").append(module.pluginId())); + autoload = cg.readEntry("autoload", autoload); + return autoload; +} + +bool Kded::platformSupportsModule(const KPluginMetaData &module) const +{ + const QStringList supportedPlatforms = module.value(QStringLiteral("X-KDE-OnlyShowOnQtPlatforms"), QStringList()); + + return supportedPlatforms.isEmpty() || supportedPlatforms.contains(qApp->platformName()); +} + +bool Kded::isModuleLoadedOnDemand(const QString &obj) const +{ + return isModuleLoadedOnDemand(findModule(obj)); +} + +bool Kded::isModuleLoadedOnDemand(const KPluginMetaData &module) const +{ + if (!module.isValid()) { + return false; + } + KSharedConfig::Ptr config = KSharedConfig::openConfig(QStringLiteral("kded5rc")); + return module.value(QStringLiteral("X-KDE-Kded-load-on-demand"), true); +} + +KDEDModule *Kded::loadModule(const QString &obj, bool onDemand) +{ + // Make sure this method is only called with valid module names. + if (obj.contains(QLatin1Char('/'))) { + qCWarning(KDED) << "attempting to load invalid kded module name:" << obj; + return nullptr; + } + KDEDModule *module = m_modules.value(obj, nullptr); + if (module) { + return module; + } + return loadModule(findModule(obj), onDemand); +} + +KDEDModule *Kded::loadModule(const KPluginMetaData &module, bool onDemand) +{ + if (!module.isValid() || module.fileName().isEmpty()) { + qCWarning(KDED) << "attempted to load an invalid module."; + return nullptr; + } + const QString moduleId = module.pluginId(); + KDEDModule *oldModule = m_modules.value(moduleId, nullptr); + if (oldModule) { + qCDebug(KDED) << "kded module" << moduleId << "is already loaded."; + return oldModule; + } + + if (onDemand) { + if (!module.value(QStringLiteral("X-KDE-Kded-load-on-demand"), true)) { + noDemandLoad(moduleId); + return nullptr; + } + } + + KDEDModule *kdedModule = nullptr; + + auto factoryResult = KPluginFactory::loadFactory(module); + if (factoryResult) { + kdedModule = factoryResult.plugin->create(this); + } else { + qCWarning(KDED).nospace() << "Could not load kded module " << moduleId << ":" << factoryResult.errorText << " (library path was:" << module.fileName() + << ")"; + } + + if (kdedModule) { + kdedModule->setModuleName(moduleId); + m_modules.insert(moduleId, kdedModule); + // m_libs.insert(moduleId, lib); + qCDebug(KDED) << "Successfully loaded module" << moduleId; + return kdedModule; + } + return nullptr; +} + +bool Kded::unloadModule(const QString &obj) +{ + KDEDModule *module = m_modules.value(obj, nullptr); + if (!module) { + return false; + } + qCDebug(KDED) << "Unloading module" << obj; + m_modules.remove(obj); + delete module; + return true; +} + +QStringList Kded::loadedModules() +{ + return m_modules.keys(); +} + +void Kded::slotApplicationRemoved(const QString &name) +{ +#if 0 // see kdedmodule.cpp (KDED_OBJECTS) + foreach (KDEDModule *module, m_modules) { + module->removeAll(appId); + } +#endif + m_serviceWatcher->removeWatchedService(name); + const QList windowIds = m_windowIdList.value(name); + for (const auto id : windowIds) { + m_globalWindowIdList.remove(id); + for (KDEDModule *module : std::as_const(m_modules)) { + Q_EMIT module->windowUnregistered(id); + } + } + m_windowIdList.remove(name); +} + +void Kded::updateDirWatch() +{ + if (!bCheckUpdates) { + return; + } + + delete m_pDirWatch; + m_pDirWatch = new KDirWatch(this); + + QObject::connect(m_pDirWatch, &KDirWatch::dirty, this, &Kded::update); + QObject::connect(m_pDirWatch, &KDirWatch::created, this, &Kded::update); + QObject::connect(m_pDirWatch, &KDirWatch::deleted, this, &Kded::dirDeleted); + + // For each resource + for (const QString &dir : std::as_const(m_allResourceDirs)) { + readDirectory(dir); + } + + QStringList dataDirs = QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation); + for (auto &dir : dataDirs) { + dir += QLatin1String("/icons"); + if (!m_pDirWatch->contains(dir)) { + m_pDirWatch->addDir(dir, KDirWatch::WatchDirOnly); + } + } +} + +void Kded::updateResourceList() +{ + KSycoca::clearCaches(); + + if (!bCheckUpdates) { + return; + } + + if (delayedCheck) { + return; + } + + const QStringList dirs = KSycoca::self()->allResourceDirs(); + // For each resource + for (const auto &dir : dirs) { + if (!m_allResourceDirs.contains(dir)) { + m_allResourceDirs.append(dir); + readDirectory(dir); + } + } +} + +void Kded::recreate() +{ + recreate(false); +} + +void Kded::runDelayedCheck() +{ + if (m_needDelayedCheck) { + recreate(false); + } + m_needDelayedCheck = false; +} + +void Kded::recreate(bool initial) +{ + // Using KLauncher here is difficult since we might not have a + // database + + if (!initial) { + updateDirWatch(); // Update tree first, to be sure to miss nothing. + KSycoca::self()->ensureCacheValid(); + recreateDone(); + } else { + if (!delayedCheck) { + updateDirWatch(); // this would search all the directories + } + if (bCheckSycoca) { + KSycoca::self()->ensureCacheValid(); + } + recreateDone(); + if (delayedCheck) { + // do a proper ksycoca check after a delay + QTimer::singleShot(60000, this, &Kded::runDelayedCheck); + m_needDelayedCheck = true; + delayedCheck = false; + } else { + m_needDelayedCheck = false; + } + } +} + +void Kded::recreateDone() +{ + updateResourceList(); + + initModules(); +} + +void Kded::dirDeleted(const QString &path) +{ + update(path); +} + +void Kded::update(const QString &path) +{ + if (path.endsWith(QLatin1String("/icons")) && m_pDirWatch->contains(path)) { + // If the dir was created or updated there could be new folders to merge into the active theme(s) + QDBusMessage message = QDBusMessage::createSignal(QStringLiteral("/KIconLoader"), QStringLiteral("org.kde.KIconLoader"), QStringLiteral("iconChanged")); + message << 0; + QDBusConnection::sessionBus().send(message); + } else { + m_pTimer->start(1000); + } +} + +void Kded::readDirectory(const QString &_path) +{ + QString path(_path); + if (!path.endsWith(QLatin1Char('/'))) { + path += QLatin1Char('/'); + } + + if (m_pDirWatch->contains(path)) { // Already seen this one? + return; + } + + Q_ASSERT(path != QDir::homePath()); + m_pDirWatch->addDir(path, KDirWatch::WatchFiles | KDirWatch::WatchSubDirs); // add watch on this dir +} + +void Kded::registerWindowId(qlonglong windowId, const QString &sender) +{ + if (!m_windowIdList.contains(sender)) { + m_serviceWatcher->addWatchedService(sender); + } + + m_globalWindowIdList.insert(windowId); + QList windowIds = m_windowIdList.value(sender); + windowIds.append(windowId); + m_windowIdList.insert(sender, windowIds); + + for (KDEDModule *module : std::as_const(m_modules)) { + qCDebug(KDED) << module->moduleName(); + Q_EMIT module->windowRegistered(windowId); + } +} + +void Kded::unregisterWindowId(qlonglong windowId, const QString &sender) +{ + m_globalWindowIdList.remove(windowId); + QList windowIds = m_windowIdList.value(sender); + if (!windowIds.isEmpty()) { + windowIds.removeAll(windowId); + if (windowIds.isEmpty()) { + m_serviceWatcher->removeWatchedService(sender); + m_windowIdList.remove(sender); + } else { + m_windowIdList.insert(sender, windowIds); + } + } + + for (KDEDModule *module : std::as_const(m_modules)) { + qCDebug(KDED) << module->moduleName(); + Q_EMIT module->windowUnregistered(windowId); + } +} + +static void sighandler(int /*sig*/) +{ + if (qApp) { + qApp->quit(); + } +} + +KUpdateD::KUpdateD() +{ + m_pDirWatch = new KDirWatch(this); + m_pTimer = new QTimer(this); + m_pTimer->setSingleShot(true); + connect(m_pTimer, &QTimer::timeout, this, &KUpdateD::runKonfUpdate); + QObject::connect(m_pDirWatch, &KDirWatch::dirty, this, &KUpdateD::slotNewUpdateFile); + + QStringList dirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("kconf_update"), QStandardPaths::LocateDirectory); + for (auto &path : dirs) { + Q_ASSERT(path != QDir::homePath()); + if (!path.endsWith(QLatin1Char('/'))) { + path += QLatin1Char('/'); + } + + if (!m_pDirWatch->contains(path)) { + m_pDirWatch->addDir(path, KDirWatch::WatchFiles); + } + } +} + +KUpdateD::~KUpdateD() +{ +} + +void KUpdateD::runKonfUpdate() +{ + ::runKonfUpdate(); +} + +void KUpdateD::slotNewUpdateFile(const QString &dirty) +{ + Q_UNUSED(dirty); + qCDebug(KDED) << dirty; + m_pTimer->start(500); +} + +static bool detectPlatform(int argc, char **argv) +{ + if (qEnvironmentVariableIsSet("QT_QPA_PLATFORM")) { + return false; + } + for (int i = 0; i < argc; i++) { + /* clang-format off */ + if (qstrcmp(argv[i], "-platform") == 0 + || qstrcmp(argv[i], "--platform") == 0 + || QByteArrayView(argv[i]).startsWith("-platform=") + || QByteArrayView(argv[i]).startsWith("--platform=")) { /* clang-format on */ + return false; + } + } + const QByteArray sessionType = qgetenv("XDG_SESSION_TYPE"); + if (sessionType.isEmpty()) { + return false; + } + if (qstrcmp(sessionType.data(), "wayland") == 0) { + qputenv("QT_QPA_PLATFORM", "wayland"); + return true; + } else if (qstrcmp(sessionType.data(), "x11") == 0) { + qputenv("QT_QPA_PLATFORM", "xcb"); + return true; + } + return false; +} + +int main(int argc, char *argv[]) +{ + // options.add("check", qi18n("Check Sycoca database only once")); + + // WABA: Make sure not to enable session management. + qunsetenv("SESSION_MANAGER"); + + const bool unsetQpa = detectPlatform(argc, argv); + + // In older versions, QApplication creation was postponed until after + // testing for --check, in which case, only a QCoreApplication was created. + // Since that option is no longer used at startup, we removed that speed + // optimization for code clarity and easier support of standard parameters. + + QApplication app(argc, argv); + if (unsetQpa) { + qunsetenv("QT_QPA_PLATFORM"); + } + + app.setQuitOnLastWindowClosed(false); + app.setQuitLockEnabled(false); + + KAboutData about(QStringLiteral("kded6"), QString(), QStringLiteral(KDED_VERSION_STRING)); + KAboutData::setApplicationData(about); + + KCrash::initialize(); + + QCommandLineParser parser; + parser.addHelpOption(); + parser.addVersionOption(); + parser.addOption(QCommandLineOption(QStringLiteral("check"), QStringLiteral("Check cache validity"))); + QCommandLineOption replaceOption({QStringLiteral("replace")}, QStringLiteral("Replace an existing instance")); + parser.addOption(replaceOption); + parser.process(app); + + // Parse command line before checking D-Bus + if (parser.isSet(QStringLiteral("check"))) { + // KDBusService not wanted here. + KSycoca::self()->ensureCacheValid(); + runKonfUpdate(); + return 0; + } + + // Qt now has DBus in another thread, so we need to handle any messages + // between the service registration and our paths existing + // This means adding the spy now, so any received message gets + // posted to the main thread + qDBusAddSpyHook(Kded::messageFilter); + + QDBusConnectionInterface *bus = QDBusConnection::sessionBus().interface(); + // Also register as all the names we should respond to (org.kde.kcookiejar, org.kde.khotkeys etc.) + // so that the calling code is independent from the physical "location" of the service. + const QList plugins = KPluginMetaData::findPlugins(QStringLiteral("kf6/kded")); + for (const KPluginMetaData &metaData : plugins) { + const QString serviceName = metaData.value(QStringLiteral("X-KDE-DBus-ServiceName")); + if (serviceName.isEmpty()) { + continue; + } + // register them queued as an old kded could be running at this point + if (!bus->registerService(serviceName, QDBusConnectionInterface::QueueService)) { + qCWarning(KDED) << "Couldn't register name" << serviceName << "with DBUS - another process owns it already!"; + } + } + KDBusService service(KDBusService::Unique | KDBusService::StartupOption(parser.isSet(replaceOption) ? KDBusService::Replace : 0)); + + KSharedConfig::Ptr config = KSharedConfig::openConfig(QStringLiteral("kded5rc")); + KConfigGroup cg(config, QStringLiteral("General")); + + bCheckSycoca = cg.readEntry("CheckSycoca", true); + bCheckUpdates = cg.readEntry("CheckUpdates", true); + delayedCheck = cg.readEntry("DelayedCheck", false); + + signal(SIGTERM, sighandler); + signal(SIGHUP, sighandler); + + KCrash::setFlags(KCrash::AutoRestart); + + std::unique_ptr kded = std::make_unique(); + + kded->recreate(true); // initial + + if (bCheckUpdates) { + (void)new KUpdateD; // Watch for updates + } + + runKonfUpdate(); // Run it once. + + return app.exec(); // keep running +} + +#include "moc_kded.cpp" diff --git a/local/recipes/kde/kf6-kded6/source/src/kded.h b/local/recipes/kde/kf6-kded6/source/src/kded.h new file mode 100644 index 00000000..11b3e012 --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/src/kded.h @@ -0,0 +1,232 @@ +/* + This file is part of the KDE libraries + SPDX-FileCopyrightText: 1999 David Faure + SPDX-FileCopyrightText: 1999 Waldo Bastian + + SPDX-License-Identifier: LGPL-2.0-only +*/ + +#ifndef KDED_H +#define KDED_H + +#include +#include +#include +#include +#include + +#include + +#include +#include + +class QDBusMessage; +class QDBusServiceWatcher; +class KPluginMetaData; +class KDirWatch; + +class Kded : public QObject +{ + Q_OBJECT +public: + Kded(); + ~Kded() override; + + static Kded *self() + { + return _self; + } + static void messageFilter(const QDBusMessage &); + + void noDemandLoad(const QString &obj); // Don't load obj on demand + + QStringList loadedModules(); + bool unloadModule(const QString &obj); + // bool isWindowRegistered(qlonglong windowId) const; + /** + * Applications can register/unregister their windows with kded modules. + * This allows kpasswdserver and kcookiejar to delete authentication + * and cookies that are local to a particular window when closing it. + */ + //@{ + /** + * Register a window with KDED + */ + void registerWindowId(qlonglong windowId, const QString &sender); + /** + * Unregister a window previously registered with KDED + */ + void unregisterWindowId(qlonglong windowId, const QString &sender); + //@} + void recreate(bool initial); + + //@{ + /** + * Check if a module should be loaded on startup. + * + * @param module the name of the desktop file for the module, without the .desktop extension + * @return @c true if the module will be loaded at startup, @c false otherwise + */ + bool isModuleAutoloaded(const QString &module) const; + //@} + + //@{ + /** + * Check if a module is supported on the current QPA + */ + bool platformSupportsModule(const KPluginMetaData &module) const; + //@} + + //@{ + /** + * Check if a module should be loaded on demand + * + * @param module the name of the desktop file for the module, without the .desktop extension + * @return @c true if the module will be loaded when its D-Bus interface + * is requested, @c false otherwise + */ + bool isModuleLoadedOnDemand(const QString &module) const; + //@} + + /** + * Configure whether a module should be loaded on startup + * + * If a module is set to be auto-loaded, it will be loaded at the start of a KDE + * session. Depending on the phase it is set to load in, it may also be loaded + * when the first KDE application is run outside of a KDE session. + * + * @param module the name of the desktop file for the module, without the .desktop extension + * @param autoload if @c true, the module will be loaded at startup, + * otherwise it will not + */ + void setModuleAutoloading(const QString &module, bool autoload); + +public Q_SLOTS: + KDEDModule *loadModule(const QString &obj, bool onDemand); + + /** + * Loads / unloads modules according to config + */ + void initModules(); + + /** + * Recreate the database file + */ + void recreate(); + + /** + * Recreating finished + */ + void recreateDone(); + + /** + * Collect all directories to watch + */ + void updateDirWatch(); + + /** + * Update directories to watch + */ + void updateResourceList(); + + /** + * An application unregistered itself from DBus + */ + void slotApplicationRemoved(const QString &); + +protected Q_SLOTS: + + /** + * @internal Triggers rebuilding + */ + void dirDeleted(const QString &path); + + /** + * @internal Triggers rebuilding + */ + void update(const QString &dir); + + void runDelayedCheck(); + +protected: + /** + * Scans dir for new files and new subdirectories. + */ + void readDirectory(const QString &dir); + /** + * Check if a module should be loaded on demand + * + * @param module a service description for the module + * @return @c true if the module will be loaded when its D-Bus interface + * is requested, @c false otherwise + */ + bool isModuleLoadedOnDemand(const KPluginMetaData &module) const; + + /** + * Check if a module should be loaded on startup. + * + * @param module a service description for the module + * @return @c true if the module will be loaded at startup, @c false otherwise + */ + bool isModuleAutoloaded(const KPluginMetaData &module) const; + + KDEDModule *loadModule(const KPluginMetaData &module, bool onDemand); + + QList availableModules() const; + /** + * Pointer to the dirwatch class which tells us, when some directories + * changed. + * Slower polling for remote file systems is now done in KDirWatch (JW). + */ + KDirWatch *m_pDirWatch = nullptr; + + /** + * When a desktop file is updated, a timer is started (5 sec) + * before rebuilding the binary - so that multiple updates result + * in only one rebuilding. + */ + QTimer *m_pTimer; + + QHash m_modules; + // QHash m_libs; + QHash m_dontLoad; + + // window id tracking, with a QDBusServiceWatcher to remove them as needed + QDBusServiceWatcher *m_serviceWatcher; + QHash> m_windowIdList; + QSet m_globalWindowIdList; + + QStringList m_allResourceDirs; + bool m_needDelayedCheck; + + static Kded *_self; +}; + +class KUpdateD : public QObject +{ + Q_OBJECT +public: + KUpdateD(); + ~KUpdateD() override; + +public Q_SLOTS: + void runKonfUpdate(); + void slotNewUpdateFile(const QString &); + +private: + /** + * Pointer to the dirwatch class which tells us, when some directories + * changed. + * Slower polling for remote file systems is now done in KDirWatch (JW). + */ + KDirWatch *m_pDirWatch = nullptr; + + /** + * When a desktop file is updated, a timer is started (5 sec) + * before rebuilding the binary - so that multiple updates result + * in only one rebuilding. + */ + QTimer *m_pTimer; +}; + +#endif diff --git a/local/recipes/kde/kf6-kded6/source/src/kdedadaptor.cpp b/local/recipes/kde/kf6-kded6/source/src/kdedadaptor.cpp new file mode 100644 index 00000000..614ca7c8 --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/src/kdedadaptor.cpp @@ -0,0 +1,70 @@ +/* + This file is part of the KDE libraries + SPDX-FileCopyrightText: 1999 David Faure + SPDX-FileCopyrightText: 2000 Waldo Bastian + + SPDX-License-Identifier: LGPL-2.0-or-later +*/ + +#include "kdedadaptor.h" +#include "kded.h" +#include +#include +#include + +KdedAdaptor::KdedAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ +} + +bool KdedAdaptor::isModuleAutoloaded(const QString &module) +{ + return Kded::self()->isModuleAutoloaded(module); +} + +bool KdedAdaptor::isModuleLoadedOnDemand(const QString &module) +{ + return Kded::self()->isModuleLoadedOnDemand(module); +} + +bool KdedAdaptor::loadModule(const QString &module) +{ + return Kded::self()->loadModule(module, false) != nullptr; +} + +bool KdedAdaptor::unloadModule(const QString &module) +{ + return Kded::self()->unloadModule(module); +} + +void KdedAdaptor::registerWindowId(qlonglong windowId, const QDBusMessage &msg) +{ + Kded::self()->registerWindowId(windowId, msg.service()); +} + +void KdedAdaptor::setModuleAutoloading(const QString &module, bool autoload) +{ + return Kded::self()->setModuleAutoloading(module, autoload); +} +void KdedAdaptor::unregisterWindowId(qlonglong windowId, const QDBusMessage &msg) +{ + Kded::self()->unregisterWindowId(windowId, msg.service()); +} + +QStringList KdedAdaptor::loadedModules() +{ + return Kded::self()->loadedModules(); +} + +void KdedAdaptor::reconfigure() +{ + KSharedConfig::openConfig(QStringLiteral("kded5rc"))->reparseConfiguration(); + Kded::self()->initModules(); +} + +void KdedAdaptor::quit() +{ + QCoreApplication::instance()->quit(); +} + +#include "moc_kdedadaptor.cpp" diff --git a/local/recipes/kde/kf6-kded6/source/src/kdedadaptor.h b/local/recipes/kde/kf6-kded6/source/src/kdedadaptor.h new file mode 100644 index 00000000..c3ce3b08 --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/src/kdedadaptor.h @@ -0,0 +1,48 @@ +/* + This file is part of the KDE libraries + SPDX-FileCopyrightText: 1999 David Faure + SPDX-FileCopyrightText: 2000 Waldo Bastian + + SPDX-License-Identifier: LGPL-2.0-or-later +*/ + +#ifndef KDED_KDEDADAPTOR_H +#define KDED_KDEDADAPTOR_H + +#include +class QDBusMessage; + +class KdedAdaptor : public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.kde.kded6") +public: + KdedAdaptor(QObject *parent); + +public Q_SLOTS: + bool loadModule(const QString &obj); + QStringList loadedModules(); + bool unloadModule(const QString &obj); + // bool isWindowRegistered(qlonglong windowId) const; + void registerWindowId(qlonglong windowId, const QDBusMessage &); + void unregisterWindowId(qlonglong windowId, const QDBusMessage &); + void reconfigure(); + void quit(); + + /** + * Check if module @a module has @c X-KDE-Kded-autoload=True. + */ + bool isModuleAutoloaded(const QString &module); + + /** + * Check if module @a module has @c X-KDE-Kded-load-on-demand=True. + */ + bool isModuleLoadedOnDemand(const QString &module); + + /** + * Set @c X-KDE-Kded-autoload to @a autoload for module @a module. + */ + void setModuleAutoloading(const QString &module, bool autoload); +}; + +#endif diff --git a/local/recipes/kde/kf6-kded6/source/src/org.kde.kded6.xml b/local/recipes/kde/kf6-kded6/source/src/org.kde.kded6.xml new file mode 100644 index 00000000..dcfe8e13 --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/src/org.kde.kded6.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/local/recipes/kde/kf6-kded6/source/src/plasma-kded6.service.in b/local/recipes/kde/kf6-kded6/source/src/plasma-kded6.service.in new file mode 100644 index 00000000..fba5e8fd --- /dev/null +++ b/local/recipes/kde/kf6-kded6/source/src/plasma-kded6.service.in @@ -0,0 +1,10 @@ +[Unit] +Description=KDE Daemon 6 +PartOf=graphical-session.target +After=plasma-kcminit.service + +[Service] +ExecStart=@KDE_INSTALL_FULL_BINDIR@/kded6 +BusName=org.kde.kded6 +Slice=session.slice +TimeoutStopSec=5sec diff --git a/recipes/kde/kf6-kded6 b/recipes/kde/kf6-kded6 new file mode 120000 index 00000000..7d91d68b --- /dev/null +++ b/recipes/kde/kf6-kded6 @@ -0,0 +1 @@ +../../local/recipes/kde/kf6-kded6 \ No newline at end of file