You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Since KDE 3.4 there is underlying support for dynamically determining whether a module should
be loaded or not, depending on an exported test function which would return a boolean value
depending on the success of one or more tests (e.g. for presence of specific hardware).
This approach is documented but has so far not been implemented by the TDE Control Centre.
This commit adds a check to the TCC which performs the test function if needed (that is, if
the X-TDE-Test-Module property is true) and, if it returns false, prevents showing the
module in the tree list, which is the intended behaviour of the test function feature.
For more information see:
https://wiki.trinitydesktop.org/index.php?title=TDEConfig_Module_HOWTO&oldid=1893#Making_a_KCModule_dynamically_available
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
(cherry picked from commit
|
6 months ago | |
---|---|---|
.. | ||
about | 4 years ago | |
CMakeL10n.txt | 6 years ago | |
CMakeLists.txt | 5 years ago | |
KControl.desktop | 5 years ago | |
KControl_NoDisplay.desktop | 5 years ago | |
Makefile.am | 11 years ago | |
aboutwidget.cpp | 1 year ago | |
aboutwidget.h | 2 years ago | |
cr16-app-kcontrol.png | 9 years ago | |
cr32-app-kcontrol.png | 9 years ago | |
cr48-app-kcontrol.png | 9 years ago | |
cr64-app-kcontrol.png | 9 years ago | |
cr128-app-kcontrol.png | 9 years ago | |
dockcontainer.cpp | 1 year ago | |
dockcontainer.h | 2 years ago | |
global.cpp | 2 years ago | |
global.h | 12 years ago | |
helpwidget.cpp | 10 years ago | |
helpwidget.h | 11 years ago | |
indexwidget.cpp | 1 year ago | |
indexwidget.h | 2 years ago | |
kcontrolui.rc | 15 years ago | |
kcrootonly.cpp | 12 years ago | |
kcrootonly.h | 12 years ago | |
main.cpp | 10 months ago | |
main.h | 2 years ago | |
moduleIface.cpp | 1 year ago | |
moduleIface.h | 2 years ago | |
moduleiconview.cpp | 1 year ago | |
moduleiconview.h | 2 years ago | |
modulemenu.cpp | 1 year ago | |
modulemenu.h | 2 years ago | |
modules.cpp | 6 months ago | |
modules.h | 2 years ago | |
moduletreeview.cpp | 1 year ago | |
moduletreeview.h | 2 years ago | |
proxywidget.cpp | 1 year ago | |
proxywidget.h | 2 years ago | |
searchwidget.cpp | 1 year ago | |
searchwidget.h | 2 years ago | |
tde-kcontrol.desktop | 5 years ago | |
toplevel.cpp | 1 year ago | |
toplevel.h | 2 years ago | |
version.h | 12 years ago |