KNewStuff: Fix file path and process call

Authored by alex on May 2 2020, 7:03 PM.

Description

KNewStuff: Fix file path and process call

Summary:
BUG: 420312

The bug was caused by two issues: The file path that was stored was wrong, for example:
Old paths:
/home/user/.local/share/servicemenu-download//rootactions_servicemenu_2.9.1.tar.gz
New paths:
/home/user/.local/share/servicemenu-download/iso_mounter_unmounter.desktop

Additionally the overload for the process call always fails, for example:

qWarning() << QProcess::execute("echo \"Hello there!\""); // Works
qWarning() << QProcess::execute("echo",{"\"Hello there!\""}); // Works
qWarning() << QProcess::execute("echo \"Hello there!\"",{}); // Fails, returns -2

Test Plan: Try out what was described in bug report

Reviewers: KNewStuff, ngraham, nicolasfella, elvisangelaccio, meven, mlaurent, leinir, anthonyfieroni

Reviewed By: leinir, anthonyfieroni

Subscribers: anthonyfieroni, kde-frameworks-devel

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D29101

Details

Committed
alexMay 2 2020, 7:04 PM
Reviewer
leinir
Differential Revision
D29101: KNewStuff: Fix file path and process call
Parents
R304:8cfc8a55af11: SVN_SILENT made messages (.desktop file) - always resolve ours
Branches
Unknown
Tags
Unknown