Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Plasma
Plasma Workspace
Commits
62925937
Commit
62925937
authored
Oct 03, 2020
by
Alexander Lohnau
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove KDE5 migration script
parent
7f5339cb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
76 deletions
+0
-76
krunner/update/CMakeLists.txt
krunner/update/CMakeLists.txt
+0
-12
krunner/update/krunnerplugins.cpp
krunner/update/krunnerplugins.cpp
+0
-61
krunner/update/krunnerplugins.upd
krunner/update/krunnerplugins.upd
+0
-3
No files found.
krunner/update/CMakeLists.txt
View file @
62925937
set
(
krunnerplugins_SRCS
krunnerplugins.cpp
)
add_executable
(
krunnerplugins
${
krunnerplugins_SRCS
}
)
target_link_libraries
(
krunnerplugins KF5::CoreAddons KF5::Service KF5::Runner KF5::ConfigCore
)
install
(
TARGETS krunnerplugins DESTINATION
${
KDE_INSTALL_LIBDIR
}
/kconf_update_bin/
)
install
(
FILES krunnerplugins.upd DESTINATION
${
KDE_INSTALL_KCONFUPDATEDIR
}
)
set
(
krunnerglobalshortcuts_SRCS
krunnerglobalshortcuts.cpp
)
...
...
krunner/update/krunnerplugins.cpp
deleted
100644 → 0
View file @
7f5339cb
/***************************************************************************
* Copyright (C) 2016 by Marco Martin <mart@kde.org> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program 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 General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
***************************************************************************/
#include <QCoreApplication>
#include <KSharedConfig>
#include <KConfigGroup>
#include <KRunner/RunnerManager>
void
migrateEnabledPlugins
()
{
KSharedConfig
::
Ptr
config
=
KSharedConfig
::
openConfig
(
"krunnerrc"
);
KConfigGroup
runnerManagerGroup
(
config
,
"PlasmaRunnerManager"
);
KConfigGroup
pluginsGroup
(
config
,
"Plugins"
);
QStringList
enabledCategories
=
runnerManagerGroup
.
readEntry
(
"enabledCategories"
,
QStringList
());
if
(
enabledCategories
.
isEmpty
())
{
return
;
}
Plasma
::
RunnerManager
*
manager
=
new
Plasma
::
RunnerManager
();
manager
->
reloadConfiguration
();
for
(
Plasma
::
AbstractRunner
*
runner
:
manager
->
runners
())
{
pluginsGroup
.
writeEntry
(
runner
->
metadata
().
pluginName
()
+
QStringLiteral
(
"Enabled"
),
false
);
for
(
auto
category
:
runner
->
categories
())
{
if
(
enabledCategories
.
contains
(
category
))
{
pluginsGroup
.
writeEntry
(
runner
->
metadata
().
pluginName
()
+
QStringLiteral
(
"Enabled"
),
true
);
break
;
}
}
}
runnerManagerGroup
.
deleteEntry
(
"enabledCategories"
);
}
int
main
(
int
argc
,
char
**
argv
)
{
QCoreApplication
app
(
argc
,
argv
);
migrateEnabledPlugins
();
return
0
;
}
krunner/update/krunnerplugins.upd
deleted
100644 → 0
View file @
7f5339cb
Version=5
Id=5.9KRunnerPlugins
Script=krunnerplugins
Write
Preview
Markdown
is supported
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