Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
KDevelop
KDevelop
Commits
999d699b
Commit
999d699b
authored
Jul 11, 2022
by
Nicolas Fella
Browse files
Port away from deprecated KToolInvocation
parent
f561a648
Pipeline
#204688
passed with stage
in 24 minutes and 14 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
app/plasma/kdevelopsessionswatch/CMakeLists.txt
View file @
999d699b
...
...
@@ -18,5 +18,5 @@ target_link_libraries(KDevelopSessionsWatch
PUBLIC
Qt5::Core
PRIVATE
KF5::
Service
KF5::
KIOGui
)
app/plasma/kdevelopsessionswatch/kdevelopsessionswatch.cpp
View file @
999d699b
...
...
@@ -9,7 +9,7 @@
// lib
#include
"sessionfilestracker.h"
// KF
#include
<K
ToolInvocation
>
#include
<K
IO/CommandLauncherJob
>
namespace
KDevelopSessionsWatch
{
...
...
@@ -29,7 +29,9 @@ void openSession(const QString& sessionId)
QStringLiteral
(
"--open-session"
),
sessionId
,
};
KToolInvocation
::
kdeinitExec
(
QStringLiteral
(
"kdevelop"
),
args
);
auto
*
job
=
new
KIO
::
CommandLauncherJob
(
QStringLiteral
(
"kdevelop"
),
args
);
job
->
setDesktopName
(
QStringLiteral
(
"org.kde.kdevelop"
));
job
->
start
();
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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