streamlink: trim custom paths (#4834)

this makes sure no spaces are accidentally left in the custom path

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
Brian
2023-09-23 04:20:05 -04:00
committed by GitHub
parent 7ea742c593
commit c71e91200a
2 changed files with 7 additions and 7 deletions
+6 -7
View File
@@ -75,17 +75,16 @@ namespace {
QProcess *createStreamlinkProcess()
{
auto p = new QProcess;
auto *p = new QProcess;
const QString path = [] {
const QString path = []() -> QString {
if (getSettings()->streamlinkUseCustomPath)
{
return getSettings()->streamlinkPath + "/" + getBinaryName();
}
else
{
return QString{getBinaryName()};
const QString path = getSettings()->streamlinkPath;
return path.trimmed() + "/" + getBinaryName();
}
return {getBinaryName()};
}();
if (Version::instance().isFlatpak())