mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
add some debug to figure out why qt4 apps don't start
This commit is contained in:
parent
c5c6368d55
commit
63358567d7
1 changed files with 4 additions and 1 deletions
|
|
@ -250,9 +250,12 @@ void ApplicationListModel::runApplication(const QString &storageId)
|
|||
|
||||
KService::Ptr service = KService::serviceByStorageId(storageId);
|
||||
|
||||
//ignore parameters like %u
|
||||
QStringList args = KShell::splitArgs(service->exec().replace(QRegExp("%\\w"), ""));
|
||||
QString exec = args.takeFirst();
|
||||
//ignore parameters like %u
|
||||
qDebug() << "exec -> " << exec;
|
||||
qDebug() << "args -> " << args;
|
||||
qDebug() << "path -> " << service->path();
|
||||
QProcess::startDetached(exec, args, service->path());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue