Add kded6 source with pre-generated D-Bus XML and fix CMake prefix path

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-04-25 14:49:51 +01:00
parent da53c400b4
commit 965141d67c
34 changed files with 4887 additions and 2 deletions
+1 -2
View File
@@ -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
@@ -0,0 +1,3 @@
#clang-format
d88258e39caa2af3ac698629601adac1424a9bf4
060fbd7d8d3c4fb8e27864e8cea4cffb6c8e9ef9
@@ -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
@@ -0,0 +1,9 @@
# SPDX-FileCopyrightText: 2020 Volker Krause <vkrause@kde.org>
# 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
@@ -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' ]
@@ -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)
@@ -0,0 +1,3 @@
@PACKAGE_INIT@
set(KDED_DBUS_INTERFACE "@PACKAGE_KDE_INSTALL_DBUSINTERFACEDIR@/org.kde.kded6.xml")
@@ -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.
@@ -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!
@@ -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!
@@ -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.
@@ -0,0 +1 @@
add_subdirectory(kded6)
@@ -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.
@@ -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
@@ -0,0 +1 @@
kdoctools_create_manpage(man-kded6.8.docbook 8 INSTALL_DESTINATION ${KDE_INSTALL_MANDIR})
@@ -0,0 +1,138 @@
<?xml version="1.0" ?>
<!DOCTYPE refentry PUBLIC "-//KDE//DTD DocBook XML V4.5-Based Variant V1.1//EN" "dtd/kdedbx45.dtd" [
<!ENTITY % English "INCLUDE"><!-- change language only here -->
]>
<refentry lang="&language;">
<refentryinfo>
<title>kded6 User's Manual</title>
<author>
<firstname>David</firstname>
<surname>Faure</surname>
<contrib>Maintainer</contrib>
<affiliation>
<address><email>faure@kde.org</email></address>
</affiliation>
</author>
<author>
<firstname>Waldo</firstname>
<surname>Bastian</surname>
<contrib>Original author</contrib>
<affiliation>
<address><email>bastian@kde.org</email></address>
</affiliation>
</author>
<date>2023-06-22</date>
<releaseinfo>Frameworks 6</releaseinfo>
<productname>KDE Frameworks</productname>
</refentryinfo>
<refmeta>
<refentrytitle><command>kded6</command></refentrytitle>
<manvolnum>8</manvolnum>
</refmeta>
<refnamediv>
<refname><command>kded6</command></refname>
<refpurpose>&kde; daemon - triggers Sycoca database updates when needed.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title>Synopsis</title>
<cmdsynopsis>
<command>kded6</command>
<arg choice="opt">--check</arg>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para><command>kded6</command> 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.</para>
<para>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 <command>kbuildsycoca6</command> to update the sycoca.</para>
<para>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.</para>
<para>Those tasks are also run when <command>kded6</command> is started to ensure that the user configuration is up to date.</para>
<para>You do not normally need to run <command>kded6</command> 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.</para>
</refsect1>
<refsect1>
<title>Options</title>
<variablelist>
<varlistentry>
<term><option>--check</option></term>
<listitem>
<para>Check the sycoca database, updating it if necessary, and exit.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>Configuration</title>
<para><command>kded6</command> can be configured with the <filename>kded6rc</filename> ini-style configuration file. On &UNIX; systems, this can be found at <filename><varname>$XDG_CONFIG_HOME</varname>/kded6rc</filename>; if <varname>$XDG_CONFIG_HOME</varname> is not set, this defaults to <filename>~/.config/kded6rc</filename>.</para>
<para>Configuration file entries are read on-demand, so changes can be made while <command>kded6</command> is running. However, all the current configuration options only really affect the startup behaviour of <command>kded6</command>.</para>
<para>The <option>[General]</option> section has the following options:
<variablelist>
<varlistentry>
<term><option>CheckSycoca</option></term>
<listitem><para>Whether to update sycoca at startup (default: <constant>true</constant>).</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>CheckUpdates</option></term>
<listitem><para>Whether to perform outstanding KConfig updates at startup (default: <constant>true</constant>).</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>CheckFileStamps</option></term>
<listitem><para>Whether to check file timestamps when performing the initial sycoca update (default: <constant>true</constant>). See the documentation for <command>kbuildsycoca6</command> for more details.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>DelayedCheck</option></term>
<listitem><para>Whether to delay the initial sycoca update until about a minute after starting (default: <constant>false</constant>).</para>
</listitem>
</varlistentry>
</variablelist>
</para>
<para>Each module also has a <option>[Module-<replaceable>name</replaceable>]</option> section in <filename>kded6rc</filename>, where <replaceable>name</replaceable> is the name of the module's desktop file without the <filename>.desktop</filename> extension. This contains an <option>autoload</option> option that specifies whether the module should be automatically loaded when <command>kded6</command> is started (default: <constant>false</constant>). Note that this setting can also be changed via <command>kded6</command>'s &DBus; interface.</para>
</refsect1>
<refsect1>
<title>See Also</title>
<para>
<citerefentry><refentrytitle>kbuildsycoca6</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
<citerefentry><refentrytitle>kdeinit6</refentrytitle><manvolnum>8</manvolnum></citerefentry>
</para>
</refsect1>
<refsect1>
<title>Bugs</title>
<para>Please use <ulink url="https://bugs.kde.org">&kde;'s bugtracker</ulink> to report bugs.</para>
</refsect1>
</refentry>
@@ -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
@@ -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
@@ -0,0 +1,271 @@
<?xml version="1.0" ?>
<!DOCTYPE refentry PUBLIC "-//KDE//DTD DocBook XML V4.5-Based Variant V1.1//EN" "dtd/kdedbx45.dtd" [
<!ENTITY % Catalan "INCLUDE"
><!-- change language only here -->
]>
<refentry lang="&language;">
<refentryinfo>
<title
>Manual d'usuari del kded6</title>
<author
><firstname
>David</firstname
> <surname
>Faure</surname
> <contrib
>Mantenidor</contrib>
<affiliation>
<address
><email
>faure@kde.org</email
></address>
</affiliation>
</author>
<author
><firstname
>Waldo</firstname
> <surname
>Bastian</surname
> <contrib
>Autor original</contrib>
<affiliation>
<address
><email
>bastian@kde.org</email
></address>
</affiliation>
</author>
<date
>22 de juny de 2023</date>
<releaseinfo
>Frameworks 6</releaseinfo>
<productname
>Frameworks del KDE</productname>
</refentryinfo>
<refmeta>
<refentrytitle
><command
>kded6</command
></refentrytitle>
<manvolnum
>8</manvolnum>
</refmeta>
<refnamediv>
<refname
><command
>kded6</command
></refname>
<refpurpose
>Dimoni del &kde;: provoca l'actualització de la base de dades Sycoca quan cal.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title
>Sinopsi</title>
<cmdsynopsis
><command
>kded6</command
> <arg choice="opt"
>--check</arg
> </cmdsynopsis>
</refsynopsisdiv>
<refsect1>
<title
>Descripció</title>
<para
>El <command
>kded6</command
> 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.</para>
<para
>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 <command
>kbuildsycoca6</command
> per a actualitzar el «sycoca».</para>
<para
>Per a KConfig, comprova els fitxers d'actualització instal·lats recentment, &pex;, els fitxers <filename class="extension"
>*.upd</filename
> 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.</para>
<para
>Aquestes tasques també s'executen quan s'inicia el <command
>kded6</command
> per a assegurar que la configuració d'usuari està actualitzada.</para>
<para
>Normalment no necessitareu executar el <command
>kded6</command
> 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.</para>
</refsect1>
<refsect1>
<title
>Opcions</title>
<variablelist>
<varlistentry>
<term
><option
>--check</option
></term>
<listitem>
<para
>Comprova la base de dades de «sycoca», actualitzant-la si cal, i surt. </para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title
>Configurar</title>
<para
>El <command
>kded6</command
> es pot configurar amb el fitxer de configuració a l'estil ini <filename
>kded6rc</filename
>. Sobre els sistemes &UNIX;, el trobareu a <filename
><varname
>$XDG_CONFIG_HOME</varname
>/kded6rc</filename
>. Si no s'ha establert <varname
>$XDG_CONFIG_HOME</varname
>, de manera predeterminada estarà a <filename
>~/.config/kded6rc</filename
>.</para>
<para
>Les entrades al fitxer de configuració es llegeixen sota demanda, de manera que es poden fer canvis mentre s'està executant el <command
>kded6</command
>. No obstant això, totes les opcions de configuració actuals, en realitat només afectaran el comportament durant l'arrencada del <command
>kded6</command
>.</para>
<para
>La secció <option
>[General]</option
> disposa de les següents opcions: <variablelist>
<varlistentry>
<term
><option
>CheckSycoca</option
></term>
<listitem
><para
>Per a actualitzar «sycoca» durant l'arrencada (predeterminat: <constant
>true</constant
>).</para>
</listitem>
</varlistentry>
<varlistentry>
<term
><option
>CheckUpdates</option
></term>
<listitem
><para
>Per a realitzar les actualitzacions pendents del KConfig durant l'arrencada (predeterminat: <constant
>true</constant
>).</para>
</listitem>
</varlistentry>
<varlistentry>
<term
><option
>CheckFileStamps</option
></term>
<listitem
><para
>Per a comprovar les marques de temps dels fitxers en realitzar l'actualització inicial de «sycoca» (predeterminat: <constant
>true</constant
>). Per a més detalls, vegeu la documentació per a <command
>kbuildsycoca6</command
>.</para>
</listitem>
</varlistentry>
<varlistentry>
<term
><option
>DelayedCheck</option
></term>
<listitem
><para
>Per a retardar l'actualització inicial de «sycoca» prop d'un minut després de començar (predeterminat: <constant
>false</constant
>).</para>
</listitem>
</varlistentry>
</variablelist>
</para>
<para
>Cada mòdul també compta amb una secció <option
>[Module-<replaceable
>nom</replaceable
>]</option
> al <filename
>kded6rc</filename
>, on el <replaceable
>nom</replaceable
> és el nom del fitxer d'escriptori del mòdul sense l'extensió <filename
>.desktop</filename
>. Aquest conté una opció <option
>autoload</option
> que especifica si el mòdul s'haurà de carregar automàticament quan s'inicia el <command
>kded6</command
> (predeterminat: <constant
>false</constant
>). Cal tenir en compte que aquest valor també es pot canviar a través de la interfície de &DBus; del <command
>kded6</command
>.</para>
</refsect1>
<refsect1>
<title
>Vegeu també</title>
<para
><citerefentry
><refentrytitle
>kbuildsycoca6</refentrytitle
><manvolnum
>8</manvolnum
></citerefentry
>, <citerefentry
><refentrytitle
>kdeinit6</refentrytitle
><manvolnum
>8</manvolnum
></citerefentry
> </para>
</refsect1>
<refsect1>
<title
>Errors</title>
<para
>Si us plau, empreu el <ulink url="https://bugs.kde.org"
>Seguidor d'errors del &kde;</ulink
> (escriviu-hi en anglès) per a informar dels errors.</para>
</refsect1>
</refentry>
@@ -0,0 +1,269 @@
<?xml version="1.0" ?>
<!DOCTYPE refentry PUBLIC "-//KDE//DTD DocBook XML V4.5-Based Variant V1.1//EN" "dtd/kdedbx45.dtd" [
<!ENTITY % Spanish "INCLUDE"
><!-- change language only here -->
]>
<refentry lang="&language;">
<refentryinfo>
<title
>Manual del usuario de kded6</title>
<author
><firstname
>David</firstname
> <surname
>Faure</surname
> <contrib
>Encargado del mantenimiento</contrib>
<affiliation>
<address
><email
>faure@kde.org</email
></address>
</affiliation>
</author>
<author
><firstname
>Waldo</firstname
> <surname
>Bastian</surname
> <contrib
>Autor original</contrib>
<affiliation>
<address
><email
>bastian@kde.org</email
></address>
</affiliation>
</author>
<date
>2023-06-22</date>
<releaseinfo
>Frameworks 6</releaseinfo>
<productname
>KDE Frameworks</productname>
</refentryinfo>
<refmeta>
<refentrytitle
><command
>kded6</command
></refentrytitle>
<manvolnum
>8</manvolnum>
</refmeta>
<refnamediv>
<refname
><command
>kded6</command
></refname>
<refpurpose
>Demonio de &kde; - desencadena actualizaciones de la base de datos Sycoca cuando es necesario.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title
>Resumen</title>
<cmdsynopsis
><command
>kded6</command
> <arg choice="opt"
>--check</arg
> </cmdsynopsis>
</refsynopsisdiv>
<refsect1>
<title
>Descripción</title>
<para
><command
>kded6</command
> 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>
<para
>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 <command
>kbuildsycoca6</command
> para actualizar sycoca.</para>
<para
>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.</para>
<para
>Esas tareas también se realizan siempre que se inicie <command
>kded6</command
> para asegurar que la configuración del usuario está actualizada.</para>
<para
>Normalmente, no se necesita ejecutar <command
>kded6</command
> 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.</para>
</refsect1>
<refsect1>
<title
>Opciones</title>
<variablelist>
<varlistentry>
<term
><option
>--check</option
></term>
<listitem>
<para
>Comprobar la base de datos de sycoca, actualizarla si es necesario y salir. </para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title
>Configuración</title>
<para
><command
>kded6</command
> se puede configurar con el archivo de configuración de <filename
>kded6rc</filename
> ini-style. En los sistemas &UNIX;, se puede encontrar en <filename
><varname
>$XDG_CONFIG_HOME</varname
>/kded6rc</filename
>; si no se le ha dado valor a <varname
>$XDG_CONFIG_HOME</varname
> su valor predeterminado es<filename
>~/.config/kded6rc</filename
>.</para>
<para
>Las entradas del archivo de configuración se leen a demanda, de manera que los cambios se pueden realizar mientras se está ejecutando <command
>kded6</command
>. Sin embargo, todas las opciones de configuración actuales solo afectan al comportamiento en el inicio de <command
>kded6</command
>.</para>
<para
>La sección <option
>[General]</option
> tiene las siguientes opciones: <variablelist>
<varlistentry>
<term
><option
>CheckSycoca</option
></term>
<listitem
><para
>Indica si se debe actualizar sycoca en el inicio (de manera predeterminada: <constant
>true</constant
>).</para>
</listitem>
</varlistentry>
<varlistentry>
<term
><option
>CheckUpdates</option
></term>
<listitem
><para
>Indica si se deben realizar las actualizaciones pendientes de KConfig en el inicio (de manera predeterminada: <constant
>true</constant
>).</para>
</listitem>
</varlistentry>
<varlistentry>
<term
><option
>CheckFileStamps</option
></term>
<listitem
><para
>Indica si se debe comprobar las marcas de tiempo del archivo cuando se realiza la actualización inicial de sycoca (de manera predeterminada: <constant
>true</constant
>). Consulte la documentación de <command
>kbuildsycoca6</command
> para obtener más información.</para>
</listitem>
</varlistentry>
<varlistentry>
<term
><option
>DelayedCheck</option
></term>
<listitem
><para
>Indica si se debe retrasar la actualización inicial de sycoca hasta un minuto después del inicio (de manera predeterminada: <constant
>false</constant
>).</para>
</listitem>
</varlistentry>
</variablelist>
</para>
<para
>Cada módulo tiene una sección <option
>[Module-<replaceable
>name</replaceable
>]</option
>en <filename
>kded6rc</filename
>, donde <replaceable
>name</replaceable
> es el nombre del archivo de escritorio sin la extensión <filename
>.desktop</filename
>. Contiene una opción <option
>autoload</option
> que especifica si el módulo se debe cargar automáticamente cuando se inicia <command
>kded6</command
> (de manera predeterminada: <constant
>false</constant
>). Tenga en cuenta que esta preferencia se puede también se puede cambiar mediante la interfaz &DBus; de <command
>kded6</command
>.</para>
</refsect1>
<refsect1>
<title
>Vea también</title>
<para
><citerefentry
><refentrytitle
>kbuildsycoca6</refentrytitle
><manvolnum
>8</manvolnum
></citerefentry
>, <citerefentry
><refentrytitle
>kdeinit6</refentrytitle
><manvolnum
>8</manvolnum
></citerefentry
> </para>
</refsect1>
<refsect1>
<title
>Fallos</title>
<para
>Use la <ulink url="https://bugs.kde.org"
>herramienta de seguimiento de fallos de &kde;</ulink
> para informar de fallos.</para>
</refsect1>
</refentry>
@@ -0,0 +1,269 @@
<?xml version="1.0" ?>
<!DOCTYPE refentry PUBLIC "-//KDE//DTD DocBook XML V4.5-Based Variant V1.1//EN" "dtd/kdedbx45.dtd" [
<!ENTITY % French "INCLUDE"
><!-- change language only here -->
]>
<refentry lang="&language;">
<refentryinfo>
<title
>Manuel Utilisateur de « kded6 »</title>
<author
><firstname
>David</firstname
> <surname
>Faure</surname
> <contrib
>Mainteneur</contrib>
<affiliation>
<address
><email
>faure@kde.org</email
></address>
</affiliation>
</author>
<author
><firstname
>Waldo</firstname
> <surname
>Bastian</surname
> <contrib
>Auteur originel</contrib>
<affiliation>
<address
><email
>bastian@kde.org</email
></address>
</affiliation>
</author>
<date
>22-06-2023</date>
<releaseinfo
>Environnements de développement 6.0</releaseinfo>
<productname
>Environnements de développement de KDE</productname>
</refentryinfo>
<refmeta>
<refentrytitle
><command
>kded6</command
></refentrytitle>
<manvolnum
>8</manvolnum>
</refmeta>
<refnamediv>
<refname
><command
>kded6</command
></refname>
<refpurpose
>Démon &kde; - déclenche les mises à jour de la base de données « sycoca » lorsque nécessaire.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title
>Synopsis</title>
<cmdsynopsis
><command
>kded6</command
> <arg choice="opt"
>--check</arg
> </cmdsynopsis>
</refsynopsisdiv>
<refsect1>
<title
>Description</title>
<para
>La commande <command
>kded6</command
> 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.</para>
<para
>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 <command
>kbuildsycoca6</command
> pour mettre à jour « sycoca ».</para>
<para
>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.</para>
<para
>Ces tâches sont aussi exécutées lorsque <command
>kded6</command
>est démarré afin de s'assurer que la configuration utilisateur est à jour.</para>
<para
>Vous ne devriez pas avoir besoin normalement de lancer directement <command
>kded6</command
>. 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.</para>
</refsect1>
<refsect1>
<title
>Options</title>
<variablelist>
<varlistentry>
<term
><option
>--check</option
></term>
<listitem>
<para
>Vérifier la base de données « sycoca », la mettre à jour si nécessaire et fermer. </para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title
>Configuration</title>
<para
>La commande <command
>kded6</command
> peut être configurée avec le fichier de configuration <filename
>kded6rc</filename
> ini-style. Sur les systèmes &UNIX; ceci peut être trouvé dans <filename
><varname
>$XDG_CONFIG_HOME</varname
>/kded6rc</filename
>; si la variable <varname
>$XDG_CONFIG_HOME</varname
> n'est pas définie, la valeur par défaut est <filename
>~/.config/kded6rc</filename
>.</para>
<para
>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 <command
>kded6</command
>. Cependant, toutes les options de configuration courantes n'affectent réellement que le comportement au démarrage de <command
>kded5</command
>.</para>
<para
>La section <option
>[Générale]</option
> possède les options suivantes : <variablelist>
<varlistentry>
<term
><option
>CheckSycoca</option
></term>
<listitem
><para
>Mise à jour ou non de « sycoca » au démarrage (Par défaut : <constant
>True</constant
>).</para>
</listitem>
</varlistentry>
<varlistentry>
<term
><option
>CheckUpdates</option
></term>
<listitem
><para
>Réaliser ou non une mise à jour en suspens de « KConfig » au démarrage (Par défaut : <constant
>True</constant
>).</para>
</listitem>
</varlistentry>
<varlistentry>
<term
><option
>CheckFileStamps</option
></term>
<listitem
><para
>Vérifier ou non les marqueurs d'horodatage lors de la réalisation de la mise à jour de « sycoca » (Par défaut : <constant
>True</constant
>). Veuillez consulter la documentation de <command
>kbuildsycoca6</command
> pour plus de détails.</para>
</listitem>
</varlistentry>
<varlistentry>
<term
><option
>DelayedCheck</option
></term>
<listitem
><para
>Retarder ou non la mise à jour initiale de « sycoca » jusqu'à environ une minute après le démarrage (Par défaut : <constant
>False</constant
>).</para>
</listitem>
</varlistentry>
</variablelist>
</para>
<para
>Chaque module possède aussi une section <option
>[Module-<replaceable
>nom</replaceable
>]</option
> dans <filename
>kded6rc</filename
>, où le paramètre <replaceable
>nom</replaceable
> est le nom du fichier de module de bureau sans l'extension <filename
>.desktop</filename
>. Ceci contient une option <option
>autoload</option
> spécifiant si le module doit être automatiquement chargé quand la commande <command
>kded6</command
> est démarrée (Par défaut : <constant
>False</constant
>). Veuillez noter que ce paramètre peut aussi être modifié par l'interface &DBus; par la commande <command
>kded6</command
>.</para>
</refsect1>
<refsect1>
<title
>Voir Aussi</title>
<para
><citerefentry
><refentrytitle
>kbuildsycoca6</refentrytitle
><manvolnum
>8</manvolnum
></citerefentry
>, <citerefentry
><refentrytitle
>kdeinit6</refentrytitle
><manvolnum
>8</manvolnum
></citerefentry
> </para>
</refsect1>
<refsect1>
<title
>Bogues</title>
<para
>Veuillez utiliser le <ulink url="https://bugs.kde.org"
>traqueur de bogues</ulink
> pour les signaler.</para>
</refsect1>
</refentry>
@@ -0,0 +1,273 @@
<?xml version="1.0" ?>
<!DOCTYPE refentry PUBLIC "-//KDE//DTD DocBook XML V4.5-Based Variant V1.1//EN" "dtd/kdedbx45.dtd" [
<!ENTITY % Italian "INCLUDE"
><!-- change language only here -->
]>
<refentry lang="&language;">
<refentryinfo>
<title
>Manuale dell'utente di kded6</title>
<author
><firstname
>David</firstname
> <surname
>Faure</surname
> <contrib
>Responsabile</contrib>
<affiliation>
<address
><email
>faure@kde.org</email
></address>
</affiliation>
</author>
<author
><firstname
>Waldo</firstname
> <surname
>Bastian</surname
> <contrib
>Autore originale</contrib>
<affiliation>
<address
><email
>bastian@kde.org</email
></address>
</affiliation>
</author>
<date
>2023-06-22</date>
<releaseinfo
>Frameworks 6</releaseinfo>
<productname
>KDE Frameworks</productname>
</refentryinfo>
<refmeta>
<refentrytitle
><command
>kded6</command
></refentrytitle>
<manvolnum
>8</manvolnum>
</refmeta>
<refnamediv>
<refname
><command
>kded6</command
></refname>
<refpurpose
>Demone di &kde; - aggiorna la banca dati di Sycoca quando necessario.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title
>Sintassi</title>
<cmdsynopsis
><command
>kded6</command
> <arg choice="opt"
>--check</arg
> </cmdsynopsis>
</refsynopsisdiv>
<refsect1>
<title
>Descrizione</title>
<para
><command
>kded6</command
> 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à.</para>
<para
>Per sycoca, sorveglia le cartelle contenenti file <literal role="extension"
>.desktop</literal
>. Quando un file viene aggiunto o rimosso, attende cinque secondi (per il caso di una serie di aggiornamenti), e quindi avvia <command
>kbuildsycoca6</command
> per aggiornare Sycoca.</para>
<para
>Per KConfig, controlla i file di aggiornamento installati recentemente, &ie; i file <literal role="extension"
>*.upd</literal
> 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.</para>
<para
>Questi compiti sono effettuati anche all'avvio di <command
>kded6</command
> per assicurarsi che la configurazione dell'utente sia aggiornata.</para>
<para
>Normalmente non devi eseguire <command
>kded6</command
> 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.</para>
</refsect1>
<refsect1>
<title
>Opzioni</title>
<variablelist>
<varlistentry>
<term
><option
>--check</option
></term>
<listitem>
<para
>Controlla la banca dati di sycoca, aggiornandola se necessario, ed esce. </para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title
>Configurazione</title>
<para
><command
>kded6</command
> può essere configurato con il file di configurazione in stile ini <filename
>kded6rc</filename
>. Sui sistemi &UNIX;, questo si può trovare sotto <filename
><varname
>$XDG_CONFIG_HOME</varname
>/kded6rc</filename
>; se <varname
>$XDG_CONFIG_HOME</varname
> non è impostata, il suo valore predefinito è <filename
>~/.config/kded6rc</filename
>.</para>
<para
>Le voci del file di configurazione sono lette a ogni richiesta, quindi si possono apportare modifiche mentre <command
>kded6</command
> è in esecuzione. Però, tutte le attuali opzioni di configurazione hanno effetto solo sul comportamento di avvio di <command
>kded6</command
>.</para>
<para
>La sezione <option
>[Generale]</option
> ha le seguenti opzioni: <variablelist>
<varlistentry>
<term
><option
>Controlla Sycoca</option
></term>
<listitem
><para
>Se aggiornare sycoca all'avvio (predefinito: <constant
>true</constant
>).</para>
</listitem>
</varlistentry>
<varlistentry>
<term
><option
>Controlla aggiornamenti</option
></term>
<listitem
><para
>Se effettuare gli aggiornamenti di KConfig pendenti all'avvio (predefinito: <constant
>true</constant
>).</para>
</listitem>
</varlistentry>
<varlistentry>
<term
><option
>Controlla date e ore dei file</option
></term>
<listitem
><para
>Se controllare le date e le ore dei file nell'effettuare l'aggiornamento iniziale di sycoca (predefinito: <constant
>true</constant
>). Vedi la documentazione di <command
>kbuildsycoca6</command
> per maggiori dettagli.</para>
</listitem>
</varlistentry>
<varlistentry>
<term
><option
>Controllo ritardato</option
></term>
<listitem
><para
>Se ritardare l'aggiornamento iniziale di sycoca a circa un minuto dopo l'avvio (predefinito: <constant
>false</constant
>).</para>
</listitem>
</varlistentry>
</variablelist>
</para>
<para
>Ogni modulo ha inoltre una sezione <option
>[Module-<replaceable
>nome</replaceable
>]</option
> in <filename
>kded6rc</filename
>, dove <replaceable
>nome</replaceable
> è il nome del file desktop del modulo senza l'estensione <literal role="extension"
>.desktop</literal
>. Questo contiene un'opzione <option
>autoload</option
> che specifica se il modulo va caricato automaticamente all'avvio di <filename
>kded6</filename
> (predefinito: <constant
>false</constant
>). Nota che questa impostazione può essere modificata anche con l'interfaccia &DBus; di <command
>kded6</command
>.</para>
</refsect1>
<refsect1>
<title
>Vedi anche</title>
<para
><citerefentry
><refentrytitle
>kbuildsycoca6</refentrytitle
><manvolnum
>8</manvolnum
></citerefentry
>, <citerefentry
><refentrytitle
>kdeinit6</refentrytitle
><manvolnum
>8</manvolnum
></citerefentry
> </para>
</refsect1>
<refsect1>
<title
>Errori</title>
<para
>Usa <ulink url="https://bugs.kde.org"
>il sito di gestione dei bug di &kde;</ulink
> per segnalarli.</para>
</refsect1>
</refentry>
@@ -0,0 +1,269 @@
<?xml version="1.0" ?>
<!DOCTYPE refentry PUBLIC "-//KDE//DTD DocBook XML V4.5-Based Variant V1.1//EN" "dtd/kdedbx45.dtd" [
<!ENTITY % Dutch "INCLUDE"
><!-- change language only here -->
]>
<refentry lang="&language;">
<refentryinfo>
<title
>Gebruikershandleiding van kded6</title>
<author
><firstname
>David</firstname
> <surname
>Faure</surname
> <contrib
>Onderhouder</contrib>
<affiliation>
<address
><email
>faure@kde.org</email
></address>
</affiliation>
</author>
<author
><firstname
>Waldo</firstname
> <surname
>Bastian</surname
> <contrib
>Oorspronkelijke auteur</contrib>
<affiliation>
<address
><email
>bastian@kde.org</email
></address>
</affiliation>
</author>
<date
>2023-06-22</date>
<releaseinfo
>Frameworks 6</releaseinfo>
<productname
>KDE Frameworks</productname>
</refentryinfo>
<refmeta>
<refentrytitle
><command
>kded6</command
></refentrytitle>
<manvolnum
>8</manvolnum>
</refmeta>
<refnamediv>
<refname
><command
>kded6</command
></refname>
<refpurpose
>&kde;-daemon - start Sycoca-database-updates wanneer nodig.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title
>Samenvatting</title>
<cmdsynopsis
><command
>kded6</command
> <arg choice="opt"
>--check</arg
> </cmdsynopsis>
</refsynopsisdiv>
<refsect1>
<title
>Beschrijving</title>
<para
><command
>kded6</command
> 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.</para>
<para
>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 <command
>kbuildsycoca6</command
> om de sycoca bij te werken.</para>
<para
>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.</para>
<para
>Deze taken worden ook altijd uitgevoerd bij het starten van <command
>kded6</command
> om er zeker van te zijn dat de configuratie van de gebruiker up-to-date is.</para>
<para
>Normaal is het niet nodig om <command
>kded6</command
> 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.</para>
</refsect1>
<refsect1>
<title
>Opties</title>
<variablelist>
<varlistentry>
<term
><option
>--check</option
></term>
<listitem>
<para
>Controleer de database van sycoca, werk het zo nodig bij en eindig. </para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title
>Configuratie</title>
<para
><command
>kded6</command
> kan geconfigureerd worden met het configuratiebestand <filename
>kded6rc</filename
> in ini-stijl. Onder &UNIX;-systemen, is het te vinden in <filename
><varname
>$XDG_CONFIG_HOME</varname
>/kded6rc</filename
>; als <varname
>$XDG_CONFIG_HOME</varname
> niet is ingesteld, dan krijgt dit de standaard waarde <filename
>~/.config/kded6rc</filename
>.</para>
<para
>Items in een configuratiebestand worden op verzoek gelezen, er kunnen dus wijzigingen aangebracht worden terwijl <command
>kded6</command
> actief is. Alle huidige configuratie-opties hebben echter alleen effect bij het opstarten van <command
>kded6</command
>.</para>
<para
>De sectie <option
>[General]</option
> heeft de volgende opties: <variablelist>
<varlistentry>
<term
><option
>CheckSycoca</option
></term>
<listitem
><para
>Of sycoca bij opstarten moet worden bijgewerkt (standaard: <constant
>true</constant
>).</para>
</listitem>
</varlistentry>
<varlistentry>
<term
><option
>CheckUpdates</option
></term>
<listitem
><para
>Of wachtende elementen voor bijwerken van KConfig bij opstarten moeten uitgevoerd (standaard: <constant
>true</constant
>).</para>
</listitem>
</varlistentry>
<varlistentry>
<term
><option
>CheckFileStamps</option
></term>
<listitem
><para
>Of datum-tijd van bestanden gecontroleerd moeten worden bij het uitvoeren van het initiële bijwerken van sycoca (standaard: <constant
>true</constant
>). Zie de documentatie voor <command
>kbuildsycoca6</command
> voor meer details.</para>
</listitem>
</varlistentry>
<varlistentry>
<term
><option
>DelayedCheck</option
></term>
<listitem
><para
>Of het initiële bijwerken van sycoca moet worden uitgesteld tot ongeveer een minuut na opstarten (standaard: <constant
>false</constant
>).</para>
</listitem>
</varlistentry>
</variablelist>
</para>
<para
>Elke module heeft ook een sectie <option
>[Module-<replaceable
>naam</replaceable
>]</option
> in <filename
>kded6rc</filename
>, waar <replaceable
>naam</replaceable
> de naam is van het desktop-bestand van de module zonder de extensie <filename
>.desktop</filename
>. Deze bevat een optie <option
>autoload</option
> die specificeert of de module automatisch geladen moet worden wanneer <command
>kded6</command
> wordt gestart (standaard: <constant
>false</constant
>). Merk op dat deze instelling gewijzigd kan worden via het &DBus;-interface van <command
>kded6</command
>.</para>
</refsect1>
<refsect1>
<title
>Zie ook</title>
<para
><citerefentry
><refentrytitle
>kbuildsycoca6</refentrytitle
><manvolnum
>8</manvolnum
></citerefentry
>, <citerefentry
><refentrytitle
>kdeinit6</refentrytitle
><manvolnum
>8</manvolnum
></citerefentry
> </para>
</refsect1>
<refsect1>
<title
>Fouten/bugs</title>
<para
>Gebruik <ulink url="https://bugskde.org"
>De volger van bugs van &kde;</ulink
> om ze te rapporteren.</para>
</refsect1>
</refentry>
@@ -0,0 +1,269 @@
<?xml version="1.0" ?>
<!DOCTYPE refentry PUBLIC "-//KDE//DTD DocBook XML V4.5-Based Variant V1.1//EN" "dtd/kdedbx45.dtd" [
<!ENTITY % Slovenian "INCLUDE"
><!-- change language only here -->
]>
<refentry lang="&language;">
<refentryinfo>
<title
>kded6 Uporabniški priročnik</title>
<author
><firstname
>David</firstname
> <surname
>Faure</surname
> <contrib
>Vzdrževalec</contrib>
<affiliation>
<address
><email
>faure@kde.org</email
></address>
</affiliation>
</author>
<author
><firstname
>Waldo</firstname
> <surname
>Bastian</surname
> <contrib
>Izvirni avtor</contrib>
<affiliation>
<address
><email
>bastian@kde.org</email
></address>
</affiliation>
</author>
<date
>22.06.2023</date>
<releaseinfo
>Frameworks 6</releaseinfo>
<productname
>KDE Frameworks</productname>
</refentryinfo>
<refmeta>
<refentrytitle
><command
>kded6</command
></refentrytitle>
<manvolnum
>8</manvolnum>
</refmeta>
<refnamediv>
<refname
><command
>kded6</command
></refname>
<refpurpose
>&kde; daemon - po potrebi sproži posodobitve podatkovne zbirke Sycoca.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title
>Sinopsis</title>
<cmdsynopsis
><command
>kded6</command
> <arg choice="opt"
>--check</arg
> </cmdsynopsis>
</refsynopsisdiv>
<refsect1>
<title
>Opis</title>
<para
><command
>kded6</command
> 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.</para>
<para
>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 <command
>kbuildsycoca6</command
> za posodobitev sycoca.</para>
<para
>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.</para>
<para
>Ta opravila se izvajajo tudi, ko se zažene <command
>kded6</command
>, da se zagotovida je uporabniška konfiguracija posodobljena.</para>
<para
>Običajno vam <command
>kded6</command
> 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.</para>
</refsect1>
<refsect1>
<title
>Možnosti</title>
<variablelist>
<varlistentry>
<term
><option
>--check</option
></term>
<listitem>
<para
>Preverite zbirko podatkov sycoca, jo po potrebi posodobite in zaključite. </para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title
>Konfiguracija</title>
<para
><command
>kded6</command
> je mogoče konfigurirati z <filename
>kded6rc</filename
> konfiguracijska datoteka v slogu ini. Na sistemih &UNIX; je to mogoče najtina <filename
><varname
>$XDG_CONFIG_HOME</varname
>/kded6rc</filename
>; če<varname
>$XDG_CONFIG_HOME</varname
> ni nastavljeno, to je privzeto<filename
>~/.config/kded6rc</filename
>.</para>
<para
>Vnosi v konfiguracijski datoteki se berejo na zahtevo, tako da je mogoče spreminjati med tem ko se <command
>kded6</command
> izvaja. Vendar pa vse trenutne možnosti konfiguracije resnično vplivajo le na obnašanje <command
>kded6</command
> ob zagonu.</para>
<para
>V razdelku <option
>[Glavno]</option
> so naslednje možnosti: <variablelist>
<varlistentry>
<term
><option
>PreveriSycoca</option
></term>
<listitem
><para
>Ali naj se ob zagonu posodobi sycoca (privzeto: <constant
>resnično</constant
>).</para>
</listitem>
</varlistentry>
<varlistentry>
<term
><option
>PreveriPosodobitve</option
></term>
<listitem
><para
>Ali naj se ob zagonu izvedejo neplačane posodobitve KConfig (privzeto: <constant
>resnično</constant
>).</para>
</listitem>
</varlistentry>
<varlistentry>
<term
><option
>PreveriŽigeDatoteke</option
></term>
<listitem
><para
>Ali se pri izvajanju začetne posodobitve sycoca preverijo časovni žigi datotek(privzeto: <constant
>true</constant
>). Oglejte si dokumentacijo za<command
>kbuildsycoca6</command
> za več podrobnosti.</para>
</listitem>
</varlistentry>
<varlistentry>
<term
><option
>ZamaknjenoPreverjanje</option
></term>
<listitem
><para
>Ali naj se začetna posodobitev programa sycoca odloži na približno minuto po začetku (privzeto: <constant
>false</constant
>).</para>
</listitem>
</varlistentry>
</variablelist>
</para>
<para
>Vsak modul ima tudi <option
>[Module-<replaceable
>name</replaceable
>]</option
> v <filename
>kded6rc</filename
>, kjer je <replaceable
>name</replaceable
> ime datoteke namizja modula brez podaljška <filename
>.desktop</filename
>. To vsebuje <option
>autoload</option
> možnost, ki določa, ali naj se modul samodejno naloži, ko je <command
>kded6</command
> zagnan (privzeto: <constant
>false</constant
>). Upoštevajte, da lahko to nastavitev spremenite tudi prek <command
>kded6</command
> vmesnika &DBus;.</para>
</refsect1>
<refsect1>
<title
>Poglejte tudi</title>
<para
><citerefentry
><refentrytitle
>kbuildsycoca6</refentrytitle
><manvolnum
>8</manvolnum
></citerefentry
>, <citerefentry
><refentrytitle
>kdeinit6</refentrytitle
><manvolnum
>8</manvolnum
></citerefentry
> </para>
</refsect1>
<refsect1>
<title
>Napake</title>
<para
>Prosim uporabite <ulink url="https://bugs.kde.org"
>&kde;jev sledilnik napak </ulink
> za prijavo napak.</para>
</refsect1>
</refentry>
@@ -0,0 +1,269 @@
<?xml version="1.0" ?>
<!DOCTYPE refentry PUBLIC "-//KDE//DTD DocBook XML V4.5-Based Variant V1.1//EN" "dtd/kdedbx45.dtd" [
<!ENTITY % Turkish "INCLUDE"
><!-- change language only here -->
]>
<refentry lang="&language;">
<refentryinfo>
<title
>kded6 Kullanıcı Kılavuzu</title>
<author
><firstname
>David</firstname
> <surname
>Faure</surname
> <contrib
>Bakımcı</contrib>
<affiliation>
<address
><email
>faure@kde.org</email
></address>
</affiliation>
</author>
<author
><firstname
>Waldo</firstname
> <surname
>Bastian</surname
> <contrib
>Özgün yazar</contrib>
<affiliation>
<address
><email
>bastian@kde.org</email
></address>
</affiliation>
</author>
<date
>2023-06-22</date>
<releaseinfo
>Frameworks 6</releaseinfo>
<productname
>KDE Frameworks</productname>
</refentryinfo>
<refmeta>
<refentrytitle
><command
>kded6</command
></refentrytitle>
<manvolnum
>8</manvolnum>
</refmeta>
<refnamediv>
<refname
><command
>kded6</command
></refname>
<refpurpose
>&kde; ardalan süreci, gerektiğinde Sycoca veritabanını günceller.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title
>Özet</title>
<cmdsynopsis
><command
>kded6</command
> <arg choice="opt"
>--check</arg
> </cmdsynopsis>
</refsynopsisdiv>
<refsect1>
<title
>Açıklama</title>
<para
><command
>kded6</command
>, 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.</para>
<para
>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 sycocayı güncellemek için <command
>kbuildsycoca6</command
> komutunu başlatır.</para>
<para
>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.</para>
<para
>Bu görevler <command
>kded6</command
> başladığında da kullanıcı yapılandırmasını güncel tutmak için çalıştırılır.</para>
<para
>Normalde <command
>kded6</command
> 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.</para>
</refsect1>
<refsect1>
<title
>Seçenekler</title>
<variablelist>
<varlistentry>
<term
><option
>--check</option
></term>
<listitem>
<para
>sycoca veritabanını denetleyin, gerekliyse güncelleyin ve çıkın. </para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title
>Yapılandırma</title>
<para
><command
>kded6</command
> komutu, <filename
>kded6rc</filename
> ini-biçemli yapılandırma dosyasıyla yapılandırılabilir. &UNIX; sistemlerde, bu <filename
><varname
>$XDG_CONFIG_HOME</varname
>/kded6rc</filename
> konumunda bulunabilir; <varname
>$XDG_CONFIG_HOME</varname
> ayarlanmamışsa öntanımlı değer <filename
>~/.config/kded6rc</filename
> olur.</para>
<para
>Yapılandırma dosyası girdileri istendiğinde okunur, böylece değişiklikler <command
>kded6</command
> çalışırken yapılabilir. Ancak tüm geçerli yapılandırma seçenekleri gerçekten yalnızca <command
>kded6</command
> davranışını etkiler.</para>
<para
><option
>[Genel]</option
> bölümü şu seçenekleri içerir: <variablelist>
<varlistentry>
<term
><option
>CheckSycoca</option
></term>
<listitem
><para
>Sycocanın açılışta güncellenip güncellenmeyeceği (öntanımlı: <constant
>true</constant
>).</para>
</listitem>
</varlistentry>
<varlistentry>
<term
><option
>CheckUpdates</option
></term>
<listitem
><para
>Kalmış KConfig güncellemelerinin açılışta yapılıp yapılmayacağı (öntanımlı: <constant
>true</constant
>).</para>
</listitem>
</varlistentry>
<varlistentry>
<term
><option
>CheckFileStamps</option
></term>
<listitem
><para
>İlk sycoca güncellemesini yaparken dosya zaman damgalarının denetlenip denetlenmeyeceği (öntanımlı: <constant
>true</constant
>). Ayrıntılar için <command
>kbuildsycoca6</command
> belgelendirmesine göz atın.</para>
</listitem>
</varlistentry>
<varlistentry>
<term
><option
>DelayedCheck</option
></term>
<listitem
><para
>İlk sycoca güncellemesinin başlangıçtan bir dakika sonraya kadar geciktirilip geciktirilmemesi (öntanımlı: <constant
>false</constant
>).</para>
</listitem>
</varlistentry>
</variablelist>
</para>
<para
>Her modül ayrıca <filename
>kded6rc</filename
> içinde bir <option
>[Modül-<replaceable
>ad</replaceable
>]</option
> kısmına sahiptir, burada <replaceable
>ad</replaceable
>, modülün masaüstü dosyasının <filename
>.desktop</filename
> uzantısı olmadan adıdır. Bu modülün <command
>kded6</command
> başlatıldığında kendiliğinden yüklenip yüklenmemesi gerektiğini belirten bir <option
>autoload</option
> seçeneği içerir (öntanımlı: <constant
>false</constant
>). Bu ayarın <command
>kded6</command
> &DBus; arayüzüyle de değiştirilebileceğini söyleyelim.</para>
</refsect1>
<refsect1>
<title
>Ayrıca Bakınız</title>
<para
><citerefentry
><refentrytitle
>kbuildsycoca6</refentrytitle
><manvolnum
>8</manvolnum
></citerefentry
>, <citerefentry
><refentrytitle
>kdeinit6</refentrytitle
><manvolnum
>8</manvolnum
></citerefentry
> </para>
</refsect1>
<refsect1>
<title
>Hatalar</title>
<para
>Hataları bildirmek için lütfen <ulink url="https://bugs.kde.org"
>&kde;'nin hata izleyicisini</ulink
> kullanın.</para>
</refsect1>
</refentry>
@@ -0,0 +1,269 @@
<?xml version="1.0" ?>
<!DOCTYPE refentry PUBLIC "-//KDE//DTD DocBook XML V4.5-Based Variant V1.1//EN" "dtd/kdedbx45.dtd" [
<!ENTITY % Ukrainian "INCLUDE"
><!-- change language only here -->
]>
<refentry lang="&language;">
<refentryinfo>
<title
>Інструкція користувача kded6</title>
<author
><firstname
>David</firstname
> <surname
>Faure</surname
> <contrib
>Супровідник</contrib>
<affiliation>
<address
><email
>faure@kde.org</email
></address>
</affiliation>
</author>
<author
><firstname
>Waldo</firstname
> <surname
>Bastian</surname
> <contrib
>Автор початкової версії</contrib>
<affiliation>
<address
><email
>bastian@kde.org</email
></address>
</affiliation>
</author>
<date
>22 червня 2023 року</date>
<releaseinfo
>Frameworks 6</releaseinfo>
<productname
>KDE Frameworks</productname>
</refentryinfo>
<refmeta>
<refentrytitle
><command
>kded6</command
></refentrytitle>
<manvolnum
>8</manvolnum>
</refmeta>
<refnamediv>
<refname
><command
>kded6</command
></refname>
<refpurpose
>Фонова служба &kde; — за потреби запускає оновлення бази даних Sycoca.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title
>Короткий опис</title>
<cmdsynopsis
><command
>kded6</command
> <arg choice="opt"
>--check</arg
> </cmdsynopsis>
</refsynopsisdiv>
<refsect1>
<title
>Опис</title>
<para
><command
>kded6</command
> поєднує у одному процесі декілька невеликих служб. Цими службами є здебільшого служби &DBus;, роботу яких забезпечують модулі KDED. Окрім того, програма керує sycoca (бінарним кешем даних щодо типів файлів, типів &MIME; та служб, які використовуються KService) та скриптами оновлення KConfig, якщо це потрібно.</para>
<para
>Для кешу sycoca ця програма слідкує за каталогами, у яких містяться файли .desktop. Після того, як до такого каталогу буде додано або вилучено файл, програма зачекає 6 секунд (щоб відстежити послідовність оновлень), а потім запустить команду <command
>kbuildsycoca6</command
> для оновлення бази даних sycoca.</para>
<para
>Для KConfig програма шукає нововстановлені файли оновлень, тобто файли *upd, які використовуються для оновлення файлів налаштувань користувачів у разі зміни формату файлів налаштувань. Для виконання оновлень програма запускає засіб оновлення KConfig.</para>
<para
>Ці завдання також виконуються після запуску <command
>kded6</command
> для забезпечення актуальності налаштувань для користувача.</para>
<para
>Зазвичай, потреби у запуску <command
>kded6</command
> вручну немає. Сеанси стільничного середовища Плазми запускають програму автоматично. Також програма запускається за потреби, якщо якась інша програма намагається скористатися інтерфейсом D-Bus, що надається kded5 або якимсь із модулів цієї програми.</para>
</refsect1>
<refsect1>
<title
>Параметри</title>
<variablelist>
<varlistentry>
<term
><option
>--check</option
></term>
<listitem>
<para
>Перевірити актуальність бази даних sycoca, оновити її, якщо це потрібно, і завершити роботу. </para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title
>Налаштування</title>
<para
><command
>kded6</command
> можна налаштувати за допомогою файла налаштувань <filename
>kded6rc</filename
> у форматі ini. У системах Unix теку цей файл зберігається за адресою <filename
><varname
>$XDG_CONFIG_HOME</varname
>/kded6rc</filename
>. Якщо змінну середовища <varname
>$XDG_CONFIG_HOME</varname
> не визначено, типовим місцем для файла є <filename
>~/.config/kded6rc</filename
>.</para>
<para
>Записи файла налаштувань буде прочитано за потреби, тому можна вносити до файла налаштувань зміни, не зупиняючи роботи <command
>kded6</command
>. Втім, усі поточні значення параметрів налаштування впливають лише на поведінку <command
>kded6</command
> під час запуску програми.</para>
<para
>У розділі <option
>[General]</option
> зберігаються значення таких параметрів: <variablelist>
<varlistentry>
<term
><option
>CheckSycoca</option
></term>
<listitem
><para
>Визначає, чи слід оновлювати sycoca під час запуску (типове значення: <constant
>true</constant
>).</para>
</listitem>
</varlistentry>
<varlistentry>
<term
><option
>CheckUpdates</option
></term>
<listitem
><para
>Визначає, чи слід виконувати додаткові оновлення KConfig під час запуску (типове значення: <constant
>true</constant
>).</para>
</listitem>
</varlistentry>
<varlistentry>
<term
><option
>CheckFileStamps</option
></term>
<listitem
><para
>Визначає, чи слід виконувати перевірку часових позначок під час початкового оновлення sycoca (типове значення: <constant
>true</constant
>). Щоб дізнатися більше, зверніться до документації з <command
>kbuildsycoca6</command
>.</para>
</listitem>
</varlistentry>
<varlistentry>
<term
><option
>DelayedCheck</option
></term>
<listitem
><para
>Визначає, чи слід відкладати початкове оновлення sycoca на одну хвилину після запуску (типове значення: <constant
>false</constant
>).</para>
</listitem>
</varlistentry>
</variablelist>
</para>
<para
>Крім того, для кожного модуля у <filename
>kded6rc</filename
> передбачено власний розділ <option
>[Module-<replaceable
>назва</replaceable
>]</option
>, де <replaceable
>назва</replaceable
> — назва файла desktop модуля без розширення <filename
>.desktop</filename
>. У цьому розділі міститься запис параметра <option
>autoload</option
>, який визначає, чи слід завантажувати модуль автоматично під час запуску <command
>kded6</command
> (типове значення: <constant
>false</constant
>). Зауважте, що значення цього параметра можна змінити за допомогою інтерфейсу D-Bus <command
>kded6</command
>.</para>
</refsect1>
<refsect1>
<title
>Прочитайте також</title>
<para
><citerefentry
><refentrytitle
>kbuildsycoca6</refentrytitle
><manvolnum
>8</manvolnum
></citerefentry
>, <citerefentry
><refentrytitle
>kdeinit6</refentrytitle
><manvolnum
>8</manvolnum
></citerefentry
> </para>
</refsect1>
<refsect1>
<title
>Вади</title>
<para
>Для сповіщення про вади скористайтеся адресою <ulink url="http://bugs.kde.org"
>системою стеження за вадами &kde;</ulink
>.</para>
</refsect1>
</refentry>
@@ -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}
)
@@ -0,0 +1,677 @@
/*
This file is part of the KDE libraries
SPDX-FileCopyrightText: 1999 David Faure <faure@kde.org>
SPDX-FileCopyrightText: 2000 Waldo Bastian <bastian@kde.org>
SPDX-License-Identifier: LGPL-2.0-only
*/
#include "kded.h"
#include "kded_debug.h"
#include "kded_version.h"
#include "kdedadaptor.h"
#include <KCrash>
#include <qplatformdefs.h>
#include <QApplication>
#include <QCommandLineParser>
#include <QDir>
#include <QLoggingCategory>
#include <QProcess>
#include <QDBusConnection>
#include <QDBusConnectionInterface>
#include <QDBusServiceWatcher>
#include <KAboutData>
#include <KConfigGroup>
#include <KDBusService>
#include <KDirWatch>
#include <KPluginFactory>
#include <KPluginMetaData>
#include <KSharedConfig>
#include <memory>
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<void (Kded::*)()>(&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<KPluginMetaData> Kded::availableModules() const
{
QList<KPluginMetaData> plugins = KPluginMetaData::findPlugins(QStringLiteral("kf6/kded"));
QSet<QString> 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<KPluginMetaData> 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<KDEDModule>(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<qlonglong> 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<qlonglong> 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<qlonglong> 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<KPluginMetaData> 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> kded = std::make_unique<Kded>();
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"
@@ -0,0 +1,232 @@
/*
This file is part of the KDE libraries
SPDX-FileCopyrightText: 1999 David Faure <faure@kde.org>
SPDX-FileCopyrightText: 1999 Waldo Bastian <bastian@kde.org>
SPDX-License-Identifier: LGPL-2.0-only
*/
#ifndef KDED_H
#define KDED_H
#include <QHash>
#include <QObject>
#include <QSet>
#include <QString>
#include <QTimer>
#include <QDBusAbstractAdaptor>
#include <KDEDModule>
#include <ksycoca.h>
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<KPluginMetaData> 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<QString, KDEDModule *> m_modules;
// QHash<QString,KLibrary *> m_libs;
QHash<QString, QObject *> m_dontLoad;
// window id tracking, with a QDBusServiceWatcher to remove them as needed
QDBusServiceWatcher *m_serviceWatcher;
QHash<QString, QList<qlonglong>> m_windowIdList;
QSet<long> 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
@@ -0,0 +1,70 @@
/*
This file is part of the KDE libraries
SPDX-FileCopyrightText: 1999 David Faure <faure@kde.org>
SPDX-FileCopyrightText: 2000 Waldo Bastian <bastian@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include "kdedadaptor.h"
#include "kded.h"
#include <KSharedConfig>
#include <QCoreApplication>
#include <QDBusMessage>
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"
@@ -0,0 +1,48 @@
/*
This file is part of the KDE libraries
SPDX-FileCopyrightText: 1999 David Faure <faure@kde.org>
SPDX-FileCopyrightText: 2000 Waldo Bastian <bastian@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef KDED_KDEDADAPTOR_H
#define KDED_KDEDADAPTOR_H
#include <QDBusAbstractAdaptor>
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
@@ -0,0 +1,38 @@
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node>
<interface name="org.kde.kded6">
<method name="loadModule">
<arg type="b" direction="out"/>
<arg name="obj" type="s" direction="in"/>
</method>
<method name="loadedModules">
<arg type="as" direction="out"/>
</method>
<method name="unloadModule">
<arg type="b" direction="out"/>
<arg name="obj" type="s" direction="in"/>
</method>
<method name="registerWindowId">
<arg name="windowId" type="x" direction="in"/>
</method>
<method name="unregisterWindowId">
<arg name="windowId" type="x" direction="in"/>
</method>
<method name="reconfigure">
</method>
<method name="quit">
</method>
<method name="isModuleAutoloaded">
<arg type="b" direction="out"/>
<arg name="module" type="s" direction="in"/>
</method>
<method name="isModuleLoadedOnDemand">
<arg type="b" direction="out"/>
<arg name="module" type="s" direction="in"/>
</method>
<method name="setModuleAutoloading">
<arg name="module" type="s" direction="in"/>
<arg name="autoload" type="b" direction="in"/>
</method>
</interface>
</node>
@@ -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