Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
System Settings
Commits
0a071db4
Commit
0a071db4
authored
Jan 21, 2021
by
Fabian Vogt
Browse files
Include SystemSettingsExternalApp modules in the --list output as well
Do it in the same was as in SettingsBase.
parent
fbf85dcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/main.cpp
View file @
0a071db4
...
...
@@ -47,10 +47,11 @@ static void listModules()
{
// First condition is what systemsettings does, second what kinfocenter does, make sure this is kept in sync
// We need the exist calls because otherwise the trader language aborts if the property doesn't exist and the second part of the or is not evaluated
const
KService
::
List
services
=
KService
::
List
services
=
KServiceTypeTrader
::
self
()
->
query
(
QStringLiteral
(
"KCModule"
),
QStringLiteral
(
"(exist [X-KDE-System-Settings-Parent-Category] and [X-KDE-System-Settings-Parent-Category] != '') or "
"(exist [X-KDE-ParentApp] and [X-KDE-ParentApp] == 'kinfocenter')"
));
services
+=
KServiceTypeTrader
::
self
()
->
query
(
QStringLiteral
(
"SystemSettingsExternalApp"
));
for
(
KService
::
List
::
const_iterator
it
=
services
.
constBegin
();
it
!=
services
.
constEnd
();
++
it
)
{
const
KService
::
Ptr
s
=
(
*
it
);
if
(
!
KAuthorized
::
authorizeControlModule
(
s
->
menuId
()))
{
...
...
Fabian Vogt
@fvogt
mentioned in commit
e3235fef
·
Jan 25, 2021
mentioned in commit
e3235fef
mentioned in commit e3235fefbcbb077c491d0ab767cb4909362075bd
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment