Changeset View
Changeset View
Standalone View
Standalone View
runners/konsoleprofiles/konsoleprofiles.cpp
Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Line(s) | 111 | { | |||
---|---|---|---|---|---|
164 | } | 164 | } | ||
165 | } | 165 | } | ||
166 | 166 | | |||
167 | void KonsoleProfiles::run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &match) | 167 | void KonsoleProfiles::run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &match) | ||
168 | { | 168 | { | ||
169 | Q_UNUSED(context) | 169 | Q_UNUSED(context) | ||
170 | const QString profile = match.data().toString(); | 170 | const QString profile = match.data().toString(); | ||
171 | 171 | | |||
172 | if (!profile.isEmpty()) { | 172 | if (profile.isEmpty()) { | ||
173 | return; | 173 | return; | ||
174 | } | 174 | } | ||
175 | 175 | | |||
176 | const QStringList args { | 176 | const QStringList args { | ||
177 | QStringLiteral("--profile"), | 177 | QStringLiteral("--profile"), | ||
178 | profile | 178 | profile | ||
179 | }; | 179 | }; | ||
180 | KToolInvocation::kdeinitExec(QStringLiteral("konsole"), args); | 180 | KToolInvocation::kdeinitExec(QStringLiteral("konsole"), args); | ||
181 | } | 181 | } | ||
182 | 182 | | |||
183 | 183 | | |||
184 | K_EXPORT_PLASMA_RUNNER(konsoleprofiles, KonsoleProfiles) | 184 | K_EXPORT_PLASMA_RUNNER(konsoleprofiles, KonsoleProfiles) | ||
185 | 185 | | |||
186 | #include "konsoleprofiles.moc" | 186 | #include "konsoleprofiles.moc" |